mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-12 06:56:24 +00:00
use strict comparison for strings
This commit is contained in:
parent
2f57a7fb18
commit
c671d8da62
1 changed files with 1 additions and 1 deletions
|
@ -263,7 +263,7 @@ class CakeRequest implements ArrayAccess {
|
||||||
$endsWithLength = strlen($endsWithIndex);
|
$endsWithLength = strlen($endsWithIndex);
|
||||||
if (
|
if (
|
||||||
strlen($uri) >= $endsWithLength &&
|
strlen($uri) >= $endsWithLength &&
|
||||||
substr($uri, -$endsWithLength) == $endsWithIndex
|
substr($uri, -$endsWithLength) === $endsWithIndex
|
||||||
) {
|
) {
|
||||||
$uri = '/';
|
$uri = '/';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue