This is now untainted too, if you know something about tainting.if ($filename =~ m/^([a-zA-Z0-9\.\_\-\/\\]+)$/) { $filename = $1 $x = `foo \"$filename\" | bar | baz`; } else { print "The filename you entered contains illegal characters."; }
In reply to Re: quoting for backticks
by Jaap
in thread quoting for backticks
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |