The solution was to do something similar to what File::Path does to untaint to the variable prior to the mkdir() call:
if ($tainted =~ /^([ &:#-\@\w.]+)$/) { $tainted = $1; #data is now untainted } else { # data is bad, log this: print STDERR "[TAINT] Bad Data received as \$tainted \n"; }
In reply to Re: inconsistency in untaint
by nerfherder
in thread inconsistency in untaint
by ruzam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |