mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +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);
|
||||
if (
|
||||
strlen($uri) >= $endsWithLength &&
|
||||
substr($uri, -$endsWithLength) == $endsWithIndex
|
||||
substr($uri, -$endsWithLength) === $endsWithIndex
|
||||
) {
|
||||
$uri = '/';
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue