- bugfix of problem introduced with r4342 by replacing strlen() with isset()

This commit is contained in:
rodneyrehm
2011-10-05 17:11:01 +00:00
parent 8bab7fe522
commit aeec0783ec
4 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -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