diff --git a/src/Smarty.class.php b/src/Smarty.class.php index 5351b57..0a47c83 100644 --- a/src/Smarty.class.php +++ b/src/Smarty.class.php @@ -107,7 +107,7 @@ class Smarty extends Smarty_Internal_TemplateBase /** * smarty version */ - const SMARTY_VERSION = '4.3.0'; + const SMARTY_VERSION = '4.4.1'; /** * define variable scopes */ diff --git a/src/plugins/modifier.implode.php b/src/plugins/modifier.implode.php new file mode 100644 index 0000000..679d71d --- /dev/null +++ b/src/plugins/modifier.implode.php @@ -0,0 +1,15 @@ +template->smarty->escape_html) { - $output = "htmlspecialchars((string) {$output}, ENT_QUOTES, '" . addslashes(Smarty::$_CHARSET) . "')"; + $output = "htmlspecialchars((string) ({$output}), ENT_QUOTES, '" . addslashes(Smarty::$_CHARSET) . "')"; } // loop over registered filters if (!empty($compiler->template->smarty->registered_filters[ Smarty::FILTER_VARIABLE ])) { diff --git a/src/sysplugins/smarty_internal_errorhandler.php b/src/sysplugins/smarty_internal_errorhandler.php index 6f526c3..4ddcfcd 100644 --- a/src/sysplugins/smarty_internal_errorhandler.php +++ b/src/sysplugins/smarty_internal_errorhandler.php @@ -94,7 +94,7 @@ class Smarty_Internal_ErrorHandler } if ($this->allowUndefinedArrayKeys && preg_match( - '/^(Undefined index|Undefined array key|Trying to access array offset on value of type)/', + '/^(Undefined index|Undefined array key|Trying to access array offset on)/', $errstr )) { return; // suppresses this error