From 02f95184ab85748deb6a71f4503d5ddce74d2d48 Mon Sep 17 00:00:00 2001 From: uwetews Date: Tue, 12 Jul 2016 02:30:14 +0200 Subject: [PATCH] - bugfix enableSecurity() must init cache flags https://github.com/smarty-php/smarty/issues/247 --- change_log.txt | 5 +++-- libs/Smarty.class.php | 2 +- libs/sysplugins/smarty_security.php | 2 ++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/change_log.txt b/change_log.txt index f149ac7b..08c1d806 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,9 +1,10 @@  ===== 3.1.30-dev ===== (xx.xx.xx) 12.07.2016 - - bugfix {foreach} item variable must be created also on empty from array https://github.com/smarty-php/smarty/issues/238 and https://github.com/smarty-php/smarty/issues/239 + - bugfix {foreach} item variable must be created also on empty from array https://github.com/smarty-php/smarty/issues/238 and https://github.com/smarty-php/smarty/issues/239 + - bugfix enableSecurity() must init cache flags https://github.com/smarty-php/smarty/issues/247 27.05.2016 - - bugfix/improvement of compileAlltemplates() follow symlinks in template folder (PHP >= 5.3.1) https://github.com/smarty-php/smarty/issues/224 + - bugfix/improvement of compileAlltemplates() follow symlinks in template folder (PHP >= 5.3.1) https://github.com/smarty-php/smarty/issues/224 clear internal cache and expension handler for each template to avoid possible conflicts https://github.com/smarty-php/smarty/issues/231 16.05.2016 diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 9f366d9a..a21d776b 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -121,7 +121,7 @@ class Smarty extends Smarty_Internal_TemplateBase /** * smarty version */ - const SMARTY_VERSION = '3.1.30-dev/73'; + const SMARTY_VERSION = '3.1.30-dev/74'; /** * define variable scopes diff --git a/libs/sysplugins/smarty_security.php b/libs/sysplugins/smarty_security.php index e9fa163d..f2f98f41 100644 --- a/libs/sysplugins/smarty_security.php +++ b/libs/sysplugins/smarty_security.php @@ -258,6 +258,8 @@ class Smarty_Security public function __construct($smarty) { $this->smarty = $smarty; + $this->smarty->_cache[ 'template_dir_new' ] = true; + $this->smarty->_cache[ 'config_dir_new' ] = true; } /**