mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-04 19:54:14 +02:00
Fixed a bug with parsing function arguments in {if} tags.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user