Skip to content

Commit

Permalink
refs #824: Type-aware condition check (violation of PHP practice)
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed Dec 29, 2014
1 parent 42b5463 commit ef71e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/model/URIHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private function __URIParser() {
$this->uri['isStrictBlogURL'] = true;
$depth = substr_count($this->context->getProperty('path'), '/');
if ($depth > 0) {
if (preg_match('@^((/+[^/]+){' . $depth . '})(.*)$@', $url, $matches))
if (preg_match('@^((/+[^/]+){' . $depth . '})(.*)$@', $url, $matches) !== FALSE)
$url = $matches[3];
else
Respond::NotFoundPage();
Expand Down

0 comments on commit ef71e54

Please sign in to comment.