cvs: smarty /libs Smarty_Compiler.class.php
| From: | Monte Ohrt | Date: | Mon, 05 May 2003 14:19:57 +0000 |
| Subject: | cvs: smarty /libs Smarty_Compiler.class.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-584@lists.php.net to get a copy of this message | ||
mohrt Mon May 5 10:19:57 2003 EDT
Modified files:
/smarty/libs Smarty_Compiler.class.php
Log:
remove ++ and -- math operators on template vars
Index: smarty/libs/Smarty_Compiler.class.php
diff -u smarty/libs/Smarty_Compiler.class.php:1.222 smarty/libs/Smarty_Compiler.class.php:1.223
--- smarty/libs/Smarty_Compiler.class.php:1.222 Sun May 4 18:08:44 2003
+++ smarty/libs/Smarty_Compiler.class.php Mon May 5 10:19:57 2003
@@ -39,7 +39,7 @@
* @package Smarty
*/
-/* $Id: Smarty_Compiler.class.php,v 1.222 2003/05/04 22:08:44 messju Exp $ */
+/* $Id: Smarty_Compiler.class.php,v 1.223 2003/05/05 14:19:57 mohrt Exp $ */
/**
* Template compiling class
* @package Smarty
@@ -112,7 +112,7 @@
// $foo[5][blah]
// $foo[5].bar[$foobar][4]
$this->_dvar_guts_regexp = '\w+(?:' . $this->_var_bracket_regexp
- . ')*(?:\.\$?\w+(?:' . $this->_var_bracket_regexp .
')*)*(?:\+\+|\-\-|(?:[\+\-\*\/]\-?\d+(?:\.\d+)?))?';
+ . ')*(?:\.\$?\w+(?:' . $this->_var_bracket_regexp .
')*)*(?:[\+\-\*\/]\-?\d+(?:\.\d+)?)?';
$this->_dvar_regexp = '\$' . $this->_dvar_guts_regexp;
// matches config vars: