Fixed a bug with parsing function arguments in {if} tags.

This commit is contained in:
andrey
2001-07-03 16:34:34 +00:00
parent 63b2275ebc
commit eb35a91397
3 changed files with 21 additions and 13 deletions
+3 -2
View File
@@ -509,11 +509,12 @@ class Smarty_Compiler extends Smarty {
preg_match_all('/(?:
"[^"\\\\]*(?:\\\\.[^"\\\\]*)*" | # match all double quoted strings allowed escaped double quotes
\'[^\'\\\\]*(?:\\\\.[^\'\\\\]*)*\' | # match all single quoted strings allowed escaped single quotes
[()] | # match parentheses
[^\s()]+ # match any other token that is not any of the above
[(),] | # match parentheses and commas
[^\s(),]+ # match any other token that is not any of the above
)/x', $tag_args, $match);
$tokens = $match[0];
var_dump($tokens);
$this->_parse_vars_props($tokens);
$is_arg_stack = array();