diff --git a/change_log.txt b/change_log.txt index 2776bfa4..654a3460 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,3 +1,7 @@ +08/03/2010 +- bugfix on uninitialized properties in smarty_internal_template +- bugfix on $smarty->disableSecurity() + 04/03/2010 - bugfix allow uppercase chars in registered resource names - bugfix on accessing chained objects of static classes diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 4eb1b5f4..08837fb0 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -466,7 +466,7 @@ class Smarty extends Smarty_Internal_Data { */ public function disableSecurity() { - $this->security = true; + $this->security = false; } /** @@ -762,4 +762,4 @@ function smartyAutoload($class) } } -?> +?> \ No newline at end of file diff --git a/libs/sysplugins/smarty_internal_template.php b/libs/sysplugins/smarty_internal_template.php index 8594f50e..2bba1bf6 100644 --- a/libs/sysplugins/smarty_internal_template.php +++ b/libs/sysplugins/smarty_internal_template.php @@ -65,10 +65,10 @@ class Smarty_Internal_Template extends Smarty_Internal_Data { public $properties = array ('file_dependency' => array(), 'nocache_hash' => '', 'function' => array()); - // storage for block data - public $block_data = array(); // required plugins public $required_plugins = array('compiled' => array(), 'nocache' => array()); + public $security = false; + public $saved_modifer = null; public $smarty = null; /** * Create template data object