Re: option to turn ESCAPE=HTML on by default

"Mike" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <001101c5d2ae$dd9e51d0$0f40eddc@mickey>
I think that would be a good idea.  Perhaps have an extra parameter when 
creating a new template object such as html_escape:

my $template = HTML::Template->new(filename=>'filename.tmpl', 
html_escape=>1);

...to turn all escaping for that object on by default.  If the programmer 
wanted the existing default (no escaping) then leave that parameter out 
during object creation.  And still have the current ability to turn escaping 
on (ESCAPE=HTML or ESCAPE=1) or off (ESCAPE=0) within the template file.

Mike.



----- Original Message ----- 
From: "Mathew Robertson" <[email protected]>
To: <[email protected]>
Sent: Monday, October 17, 2005 9:46 AM
Subject: Re: [htmltmpl] option to turn ESCAPE=HTML on by default


> If this is going to happen, can we make it optional, as some of us dont 
> want escaping.
>
> Mathew
>
>>>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.
>>Sure, sounds reasonable to me.
>>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> Html-template-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/html-template-users 



-------------------------------------------------------
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.