From 67470219d2402996906711a03f60ce0f1be47844 Mon Sep 17 00:00:00 2001 From: mohrt Date: Tue, 18 Mar 2003 14:47:41 +0000 Subject: [PATCH] fix (newly introduced) bug with passing multiple modifiers to a parameter --- NEWS | 2 ++ libs/Smarty_Compiler.class.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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).'"'; }