raintpl3
raintpl3 copied to clipboard
Function parameter bug
Template
{$array.var|func:"Y-m-d H:i"}
Compiled code
<?php echo func($array["var"],"Y-m-d) H:i"; ?>
Must be:
<?php echo func($array["var"],"Y-m-d H:i"); ?>
The parsing of function arguments in modifiers is entirely broken. You cannot use any other character than in a variable name, a comma is parsed as argument separater even if occuring inside quotes, quotes are not supported correctly (only double quotes, not single quotes, and so on). I gave up fixing what I started to fix in #193.