From 4a0e96b76c36bb4473108c2947874b66e16987c6 Mon Sep 17 00:00:00 2001 From: messju Date: Fri, 12 Sep 2003 14:39:45 +0000 Subject: [PATCH] fixed quoting of modifier parameters --- libs/Smarty_Compiler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index 97b091c4..bc9825c0 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -1589,7 +1589,7 @@ class Smarty_Compiler extends Smarty { // inform the calling expression the return type (php, static) $this->_output_type = 'php'; - $_math_vars = preg_split('!('.$this->_dvar_math_regexp.'|\".*?\")!', $var_expr, -1, PREG_SPLIT_DELIM_CAPTURE); + $_math_vars = preg_split('!('.$this->_dvar_math_regexp.'|'.$this->_qstr_regexp.')!', $var_expr, -1, PREG_SPLIT_DELIM_CAPTURE); if(count($_math_vars) > 1) { $_output = "";