Re: Suggestion on how to eliminate Cross-site-scripting (XSS) bugs for good.

Alex Kapranoff <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Organization Inner Mongolia
Message-ID <[email protected]>
* Michael Peters <[email protected]> [October 17 2006, 17:01]:
> Alex Kapranoff wrote:
> > * Shlomi Fish <[email protected]> [October 17 2006, 14:23]:
> >> Now what I want is to sub-class HTML::Template so we'll always have to 
> >> use "ESCAPE=HTML". If we want to override it we'll need to do the following:
> > 
> > There's `default_escape' option in recent HTML::Template. Is it not
> > enough?
> 
> I think if you use default_escape => 'HTML' that would get him most of the way.
> But there should be a way to turn off escaping when you know the var will
> contain HTML. So maybe an escape="none" option?

ESCAPE="0" works for now.

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

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
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.