diff --git a/NEWS b/NEWS index 2c4280bb..8bb0242f 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ + - fixed bug with passing multiple modifiers to a parameter + (Monte) - updated docs for html_checkboxes, html_options and html_radios (messju) - fixed wrong default "name" attribute for html_options (messju) - html_checkboxes now expect the options as attribute "options" instead diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index a08201be..9527aad4 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -1352,7 +1352,7 @@ class Smarty_Compiler extends Smarty { $token = 'false'; } else if ($token == 'null') { $token = 'null'; - } else if (!preg_match('!^' . $this->_obj_call_regexp . '|' . $this->_var_regexp . '(?:' . $this->_mod_regexp . ')?$!', $token)) { + } else if (!preg_match('!^' . $this->_obj_call_regexp . '|' . $this->_var_regexp . '(?:' . $this->_mod_regexp . ')*$!', $token)) { /* treat as a string, double-quote it escaping quotes */ $token = '"'.addslashes($token).'"'; }