mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
fix (newly introduced) bug with passing multiple modifiers to a parameter
This commit is contained in:
2
NEWS
2
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
|
||||
|
@@ -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).'"';
|
||||
}
|
||||
|
Reference in New Issue
Block a user