Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 49f72c69e5b8e6df2b7c073d237dff78fb209af6 1 parent 840de95
rodneyrehm authored
View
3  distribution/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)
View
2  distribution/libs/sysplugins/smarty_security.php
@@ -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.
Something went wrong with that request. Please try again.