From 724f940782e20c537a79282388dbd53689458225 Mon Sep 17 00:00:00 2001 From: messju Date: Thu, 3 Jul 2003 09:31:21 +0000 Subject: [PATCH] applied fix for {$var1->p1|modifier:$var2->p2}-syntax - thanks Dominik --- 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 a4a9193e..d9f0e9d3 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -122,7 +122,7 @@ class Smarty_Compiler extends Smarty { // $foo[5][blah] // $foo[5].bar[$foobar][4] $this->_dvar_math_regexp = '[\+\-\*\/\%]'; - $this->_dvar_math_var_regexp = '[\$\w\.\+\-\*\/\%\d\|\:\>\[\]]'; + $this->_dvar_math_var_regexp = '[\$\w\.\+\-\*\/\%\d\|\>\[\]]'; $this->_dvar_num_var_regexp = '\-?\d+(?:\.\d+)?' . $this->_dvar_math_var_regexp; $this->_dvar_guts_regexp = '\w+(?:' . $this->_var_bracket_regexp . ')*(?:\.\$?\w+(?:' . $this->_var_bracket_regexp . ')*)*(?:' . $this->_dvar_math_regexp . '(?:\-?\d+(?:\.\d+)?|' . $this->_dvar_math_var_regexp . '*))?';