Menu

#6 TMPL_VAR default misbehaves on js or url es

open
nobody
None
5
2006-03-25
2006-03-25
Mina Naguib
No

If a TMPL_VAR has a DEFAULT set as well as ESCAPE set to either JS or
URL, then default value will be prepended to the variable's value even if it
is not empty.

This can be fixed by modifying line 2723 in HTML/Template.pm to:
*line = \$parse_stack[++$x] if grep {ref $line eq $_}
('HTML::Template::ESCAPE', 'HTML::Template::JSESCAPE',
'HTML::Template::URLESCAPE');

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.