more useful options | |
PerlMonks |
Re^3: Preventing injection attacksby andye (Curate) |
on Apr 03, 2007 at 17:36 UTC ( [id://608116]=note: print w/replies, xml ) | Need Help?? |
Hiya Win,
One possibility, if you want to get a log of infringement attempts, would be to do this:
But once you've decided the data is unacceptable, that doesn't mean you have to throw it away: if you want to process it in some way afterwards, then of course you can. You'd need to be pretty careful that you don't do something that could allow it to bite you, though; perhaps you could encode all non-alphanumeric characters, or something like that. Best wishes, andye
In Section
Seekers of Perl Wisdom
|
|