wcnardone has asked for the wisdom of the Perl Monks concerning the following question:
I'm update some old perl web code that was not checking input parameters from the web page for invalid characters and/or scripting code. I'm already using the HTML::StripScripts::Parser to strip out most of the invalid input, but one of the hacker input strings starts with >'> and any use of the string in a comparison or other string function does not behave properly, like comparing the initial string to the stripped string. The length function seems to be the only one that works.
Any ideas on how to handle the original string?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTML input string that starts with >'>
by Corion (Patriarch) on Feb 01, 2010 at 21:03 UTC | |
by wcnardone (Initiate) on Feb 01, 2010 at 21:13 UTC | |
|
Re: HTML input string that starts with >'>
by aquarium (Curate) on Feb 01, 2010 at 22:14 UTC |