None of the supplied options...
my $foo; if ($bar =~ m!(acceptable_value|allowed_value)!) { $foo = $1; } else { die 'Invalid value of tainted $bar: ' . $bar; }
In reply to Re: What's your favourite method of untainting?
by Bod
in thread What's your favourite method of untainting?
by Corion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |