in reply to Re^4: Insecure dependency in open while running with -T switch
in thread Insecure dependency in open while running with -T switch
So where might I be in danger now? Why -T makes my CGI safer?sub untainted_string { my ($data) = @_; if ($data =~ /^([-\@\w.\\\/\s]+)$/) { $data = $1; # $data now untainted } else { die "Bad data in '$data'"; } return $data; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Insecure dependency in open while running with -T switch
by runrig (Abbot) on Jan 19, 2008 at 01:13 UTC | |
by vit (Friar) on Jan 19, 2008 at 01:30 UTC | |
by CountZero (Bishop) on Jan 19, 2008 at 07:38 UTC |