mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Make check for ..
more specific.
A `..` anywhere in the classname is invalid.
This commit is contained in:
parent
726738308e
commit
36d8473215
1 changed files with 1 additions and 1 deletions
|
@ -535,7 +535,7 @@ class App {
|
|||
if (!isset(self::$_classMap[$className])) {
|
||||
return false;
|
||||
}
|
||||
if (strpos($className, '..')) {
|
||||
if (strpos($className, '..') !== false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue