diff --git a/change_log.txt b/change_log.txt index 17fa9a7e..1bf0eeed 100644 --- a/change_log.txt +++ b/change_log.txt @@ -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) diff --git a/libs/sysplugins/smarty_security.php b/libs/sysplugins/smarty_security.php index 90b0e3e2..f8b31d96 100644 --- a/libs/sysplugins/smarty_security.php +++ b/libs/sysplugins/smarty_security.php @@ -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