Skip to content

Commit

Permalink
Merge pull request #156 from wecodenl/master
Browse files Browse the repository at this point in the history
Bugfix for urls with %27 in the url
  • Loading branch information
halkyon committed Aug 22, 2014
2 parents 25c0341 + 2e32eab commit ffe6c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/extensions/SiteTreeSubsites.php
Expand Up @@ -263,7 +263,7 @@ function augmentSyncLinkTracking() {

$origDisableSubsiteFilter = Subsite::$disable_subsite_filter;
Subsite::disable_subsite_filter(true);
$candidatePage = DataObject::get_one("SiteTree", "\"URLSegment\" = '" . urldecode( $rest). "' AND \"SubsiteID\" = " . $subsiteID, false);
$candidatePage = DataObject::get_one("SiteTree", "\"URLSegment\" = '" . Convert::raw2sql(urldecode( $rest)) . "' AND \"SubsiteID\" = " . $subsiteID, false);
Subsite::disable_subsite_filter($origDisableSubsiteFilter);

if($candidatePage) {
Expand Down

0 comments on commit ffe6c34

Please sign in to comment.