bugfix Smarty_Security internal $_resource_dir cache wasn't properly propagated

This commit is contained in:
rodneyrehm
2012-01-30 11:31:34 +00:00
parent 9419a999c9
commit 26eac9888d
2 changed files with 4 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
===== trunk =====
30.01.2012
- bugfix Smarty_Security internal $_resource_dir cache wasn't properly propagated
27.01.2012
- bugfix Smarty did not a template name of "0" (Forum Topic 20895)

View File

@@ -362,7 +362,7 @@ class Smarty_Security {
$_directory = array();
while (true) {
// remember the directory to add it to _resource_dir in case we're successful
$_directory[] = $directory;
$_directory[$directory] = true;
// test if the directory is trusted
if (isset($this->_resource_dir[$directory])) {
// merge sub directories of current $directory into _resource_dir to speed up subsequent lookups