You don't get to choose just some to be tainted. If taint mode is on, all the data is tainted. The usual way to detaint is, for instance,
Taint mode helps you guarantee that all the data you use is really checked.my $zip = $cgi->param('zipcode'); $zip = $1 if $zip =~ m/^(\d{5})$/;
The Regexp::Common module is uncommonly handy for these chores.
After Compline,
Zaxo
In reply to Re: Form Checking and Tainting
by Zaxo
in thread Form Checking and Tainting
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |