Skip to content

Commit

Permalink
use strict comparison for strings
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Jul 2, 2013
1 parent 2f57a7f commit c671d8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Network/CakeRequest.php
Expand Up @@ -263,7 +263,7 @@ protected function _url() {
$endsWithLength = strlen($endsWithIndex);
if (
strlen($uri) >= $endsWithLength &&
substr($uri, -$endsWithLength) == $endsWithIndex
substr($uri, -$endsWithLength) === $endsWithIndex
) {
$uri = '/';
}
Expand Down

0 comments on commit c671d8d

Please sign in to comment.