(though I'm not sure why you have $bar twice in the error message...)my $foo = $bar =~ m!(acceptable_value|allowed_value)! ? $1 : die 'Invalid value of tainted $bar: ' . $bar;
In reply to Re^2: What's your favourite method of untainting?
by Anonymous Monk
in thread What's your favourite method of untainting?
by Corion
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |