Skip to content

Commit

Permalink
Fixed error when putting ' in a URL by accident.
Browse files Browse the repository at this point in the history
  • Loading branch information
timbuckingham committed Jul 3, 2013
1 parent 22114b8 commit c5f27bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/inc/bigtree/cms.php
Expand Up @@ -127,7 +127,7 @@ function checkOldRoutes($path) {
$found = false;
$x = count($path);
while ($x) {
$f = sqlfetch(sqlquery("SELECT * FROM bigtree_route_history WHERE old_route = '".implode("/",array_slice($path,0,$x))."'"));
$f = sqlfetch(sqlquery("SELECT * FROM bigtree_route_history WHERE old_route = '".sqlescape(implode("/",array_slice($path,0,$x)))."'"));
if ($f) {
$old = $f["old_route"];
$new = $f["new_route"];
Expand Down

3 comments on commit c5f27bf

@fgeek
Copy link

@fgeek fgeek commented on c5f27bf Aug 8, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which release will include this change?

@timbuckingham
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be in the 4.0 final release which we expect to ship in the next few weeks.

@fgeek
Copy link

@fgeek fgeek commented on c5f27bf Dec 31, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This issue is same as: http://osvdb.org/96007 (just a fyi)

Please sign in to comment.