Re: option to turn ESCAPE=HTML on by default

Alex Kapranoff <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Organization Inner Mongolia
Message-ID <[email protected]>
* Mark Stosberg <[email protected]> [October 14 2005, 18:37]:
> I'm curious about what other people think about an option to
> turn ESCAPE=HTML on default, to protect against cross script scripting
> practices by default. 
> 
> This seems especially valuable when the convenient "associate => $q"
> option is used. 
> 
> Then programmers would be forcing themselves to consciously add
> "NOESCAPE=html" to a tag.
> 
> To me, this seems like the equivalent of turning "use strict" on by
> default, and explicitly declaring "no strict" where needed. 
> 
> Thoughts? 

All for it. About 10% of my TMPL_VARS are not escaped. "NOESCAPE=html"
looks very confusing. Should probably be "ESCAPE=none".

-- 
Alex Kapranoff,
$n=["1another7Perl213Just3hacker49"=~/\d|\D*/g];
$$n[0]={grep/\d/,@$n};print"@$n{1..4}\n"


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.