use strict comparison for strings

This commit is contained in:
euromark 2013-07-02 11:01:02 +02:00
parent 2f57a7fb18
commit c671d8da62

View file

@ -263,7 +263,7 @@ class CakeRequest implements ArrayAccess {
$endsWithLength = strlen($endsWithIndex);
if (
strlen($uri) >= $endsWithLength &&
substr($uri, -$endsWithLength) == $endsWithIndex
substr($uri, -$endsWithLength) === $endsWithIndex
) {
$uri = '/';
}