Skip to content

Commit

Permalink
Make check for .. more specific.
Browse files Browse the repository at this point in the history
A `..` anywhere in the classname is invalid.
  • Loading branch information
markstory committed Jul 5, 2013
1 parent 7607087 commit c685f6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Core/App.php
Expand Up @@ -535,7 +535,7 @@ public static function load($className) {
if (!isset(self::$_classMap[$className])) {
return false;
}
if (strpos($className, '..')) {
if (strpos($className, '..') !== false) {
return false;
}

Expand Down

0 comments on commit c685f6c

Please sign in to comment.