[htmltmpl] [PATCH] default_escape

2002-06-20 Thread Tatsuhiko Miyagawa
This patch allows you to do HTML::Template->new(default_escape => 'HTML'); then your TMPL_VARs will always be HTML-escaped unless you explicitly specify ESCAPE=0, which will be a handy guard against Cross Site Scripting attacks. -- Tatsuhiko Miyagawa <[EMAIL PROTECTED]> diff -ruP HTML-Templ

[htmltmpl] TMPL_IF truth vs definition

2002-06-20 Thread Tugrul Galatali
Even though I read the documentation for HTML::Template at some point, I had gotten into the habit of using TMPL_IF in the sense of if a variable is defined instead of if it is true. Now 99% of the time this just happens to work, as most defined things are also considered to be true. But t