in reply to Re^2: Insecure dependency error and $ENV{'PATH'}
in thread Insecure dependency error and $ENV{'PATH'}
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Insecure dependency error and $ENV{'PATH'}
by bradcathey (Prior) on Aug 05, 2004 at 19:03 UTC |