From f9ce2d8c7e648ecf871e9de92feb087e160f9c5e Mon Sep 17 00:00:00 2001 From: "monte.ohrt" Date: Fri, 11 Feb 2011 22:21:17 +0000 Subject: [PATCH] fix typos, rewording --- change_log.txt | 2 +- libs/Smarty.class.php | 4 ++-- libs/sysplugins/smarty_internal_template.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/change_log.txt b/change_log.txt index 3e960845..39326e2f 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,6 +1,6 @@ ===== SVN trunk ===== 09/02/2011 -- bugfix removed security hole when using {$smarty.template} +- patched vulnerability when using {$smarty.template} 01/02/2011 - removed assert() from config and template parser diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 04f49d3e..75a1164b 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -331,7 +331,7 @@ class Smarty extends Smarty_Internal_Data { $_gmt_mtime = ''; } } - // return redered template + // return rendered template if ((!$this->caching || $_template->resource_object->isEvaluated) && (isset($this->autoload_filters['output']) || isset($this->registered_filters['output']))) { $_output = Smarty_Internal_Filter_Handler::runFilter('output', $_template->getRenderedTemplate(), $_template); } else { @@ -812,4 +812,4 @@ Class SmartyException extends Exception { Class SmartyCompilerException extends SmartyException { } -?> \ No newline at end of file +?> diff --git a/libs/sysplugins/smarty_internal_template.php b/libs/sysplugins/smarty_internal_template.php index 799d7944..070fb840 100644 --- a/libs/sysplugins/smarty_internal_template.php +++ b/libs/sysplugins/smarty_internal_template.php @@ -832,7 +832,7 @@ class Smarty_Internal_Template extends Smarty_Internal_Data { } /** - * creates a loacal Smarty variable for array assignments + * creates a local Smarty variable for array assignments */ public function createLocalArrayVariable($tpl_var, $nocache = false, $scope = Smarty::SCOPE_LOCAL) {