- bugfix the lexer/parser did fail on special characters like VT

This commit is contained in:
uwe.tews@googlemail.com
2011-01-31 14:15:12 +00:00
parent af19a07bf3
commit 0860e69018
3 changed files with 108 additions and 91 deletions
@@ -42,6 +42,7 @@ class Smarty_Internal_Compile_Function extends Smarty_Internal_CompileBase {
$_name = trim($_attr['name'], "'\"");
unset($_attr['name']);
$compiler->template->properties['function'][$_name]['parameter'] = array();
$_smarty_tpl = $compiler->template;
foreach ($_attr as $_key => $_data) {
eval ('$tmp='.$_data.';');
$compiler->template->properties['function'][$_name]['parameter'][$_key] = $tmp;