mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
bugfix Smarty_Security internal $_resource_dir cache wasn't properly propagated
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
===== trunk =====
|
===== trunk =====
|
||||||
|
30.01.2012
|
||||||
|
- bugfix Smarty_Security internal $_resource_dir cache wasn't properly propagated
|
||||||
|
|
||||||
27.01.2012
|
27.01.2012
|
||||||
- bugfix Smarty did not a template name of "0" (Forum Topic 20895)
|
- bugfix Smarty did not a template name of "0" (Forum Topic 20895)
|
||||||
|
|
||||||
|
@@ -362,7 +362,7 @@ class Smarty_Security {
|
|||||||
$_directory = array();
|
$_directory = array();
|
||||||
while (true) {
|
while (true) {
|
||||||
// remember the directory to add it to _resource_dir in case we're successful
|
// 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
|
// test if the directory is trusted
|
||||||
if (isset($this->_resource_dir[$directory])) {
|
if (isset($this->_resource_dir[$directory])) {
|
||||||
// merge sub directories of current $directory into _resource_dir to speed up subsequent lookups
|
// merge sub directories of current $directory into _resource_dir to speed up subsequent lookups
|
||||||
|
Reference in New Issue
Block a user