fix (newly introduced) bug with passing multiple modifiers to a parameter

This commit is contained in:
mohrt
2003-03-18 14:47:41 +00:00
parent a94f3cb112
commit 67470219d2
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@@ -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

View File

@@ -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).'"';
}