Permalink
Browse files

bugfix Smarty_Security internal $_resource_dir cache wasn't properly …

…propagated

git-svn-id: http://smarty-php.googlecode.com/svn/trunk@4544 9dce5a81-9a42-0410-99e4-3799d3902e7f
  • Loading branch information...
1 parent 840de95 commit 49f72c69e5b8e6df2b7c073d237dff78fb209af6 rodneyrehm committed Jan 30, 2012
Showing with 4 additions and 1 deletion.
  1. +3 −0 distribution/change_log.txt
  2. +1 −1 distribution/libs/sysplugins/smarty_security.php
@@ -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)
@@ -362,7 +362,7 @@ public function isTrustedResourceDir($filepath)
$_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

0 comments on commit 49f72c6

Please sign in to comment.