Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Using taint mode to prevent XSS holes

by IlyaM (Parson)
on Jan 06, 2003 at 23:10 UTC ( [id://224782]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Template::Secure;
    
    ...
        return $ret;
    }
    
  2. or download this
    # a bit hacky way to redefine subs without modifying sources; this
    # code can be put directly into Template::Secure module
    ...
        };
    
    }
    
  3. or download this
    #!/usr/bin/perl -T
    
    ...
    </body>
    </html>
    
  4. or download this
    #!/usr/bin/perl -T
    
    ...
    Hello, [% HTML.escape(name) %]!
    </body>
    </html>
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://224782]
Approved by adrianh
Front-paged by adrianh
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-04-24 03:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found