mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 18:04:26 +02:00
Hopefully fix for sure.
This commit is contained in:
@@ -76,7 +76,7 @@ function fix_tag($template_tag)
|
||||
(\s+(.*))?
|
||||
/xs', $template_tag, $match);
|
||||
list(, $tag_command, $tag_args) = $match;
|
||||
if (preg_match('!^\$\w+(?>(\[\w+(\.\w+)?\])|(\.\w+))*(?>\|@?\w+(:(?>' . $qstr_regexp . '|[^|]+))*)*$!', $tag_command))
|
||||
if (preg_match('!^\$(\w+(\.\w+)?/)*\w+(?>\.\w+)*(?>\|@?\w+(:(?>' . $qstr_regexp . '|[^|]+))*)*$!', $tag_command))
|
||||
$tag_command = fix_var($tag_command);
|
||||
else if (preg_match('!^#(\w+)#(?>\|@?\w+(:(?>' . $qstr_regexp . '|[^|]+))*)*$!', $tag_command))
|
||||
$tag_command = fix_other_var($tag_command);
|
||||
|
Reference in New Issue
Block a user