|
|
| Welcome to the Monastery | |
| PerlMonks |
Re: CGI - hazardous charactersby bradcathey (Prior) |
| on Jul 20, 2010 at 02:19 UTC ( #850338=note: print w/ replies, xml ) | Need Help?? |
|
Not sure exactly what you are looking for, but here's some Perl that grabs the form value and then tests it for unwanted characters and untaints in the same step. I have a bunch of validation methods depending on what I'm testing for. Calling script:
Validation script
I've put a lot of work in to figuring out this CGI stuff—you can see more complete examples at Using Perl, jQuery, and JSON for Web development and A Tutorial for CGI::Application.
—Brad "The important work of moving the world forward does not wait to be done by perfect men." George Eliot
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||