mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
Make check for ..
more specific.
A `..` anywhere in the classname is invalid.
This commit is contained in:
parent
76070871eb
commit
c685f6ca13
1 changed files with 1 additions and 1 deletions
|
@ -535,7 +535,7 @@ class App {
|
||||||
if (!isset(self::$_classMap[$className])) {
|
if (!isset(self::$_classMap[$className])) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (strpos($className, '..')) {
|
if (strpos($className, '..') !== false) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue