in reply to inconsistency in untaint
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"; }
|
|---|