|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-01-29 14:29 UTC] wima at tiscalinet dot ch
Hello I have a variable with the string =$A3*B$2 I add this to my Template with setVariable(). Then I parse the Template with parse(). And then I display it with show(). The string shows as =$A3*B Where is the $2? I fixed this Bug in the parse-function: line 462: $values[] = addcslashes($this->variableCache[$allowedvar],'$'); I think, this Bug is in line 452 too: $values[] = addcslashes($value,'$'); Can anyone fix this in the repository? Thank you very much! Marco PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 13:00:01 2025 UTC |
There is another bug: $tpl = new HTML_Template_IT(_TEMPLATE_DIR); $tpl->setTemplate('{ANTWORT}'); $tpl->setVariable(array( "ANTWORT" => 'aa{bb}cc' )); $tpl->parse(); $tpl->show(); displays aacc. Where is the {bb}?