mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-05 12:14:12 +02:00
- bugfix of problem introduced with r4342 by replacing strlen() with isset()
This commit is contained in:
@@ -364,7 +364,7 @@ class Smarty_Security {
|
||||
return true;
|
||||
}
|
||||
// abort if we've reached root
|
||||
if (($pos = strrpos($directory, DS)) === false || !isset($directory[2])) {
|
||||
if (($pos = strrpos($directory, DS)) === false || !isset($directory[1])) {
|
||||
break;
|
||||
}
|
||||
// bubble up one level
|
||||
|
||||
Reference in New Issue
Block a user