This is not safe, particularly since you are doing this in the name of untainting.$branch =~ /^([\w-]+)$/i; $branch = $1;
Never never never use $1 unless you've also checked that the match has succeeded.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to •Re^3: Insecure dependency error and $ENV{'PATH'}
by merlyn
in thread Insecure dependency error and $ENV{'PATH'}
by bradcathey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |