in reply to Upload file through perl-cgi not working
$1 only gets populated by capturing parens, and you need to use it, before running another regex. By the time you assign $1 to a variable, it is empty again
local $\="\n"; print 33 =~ /\d+/; print int defined $1; print 33 =~ /(\d+)/; print int defined $1; __END__ 1 0 33 1
$file is tainted, and it will remain tainted, until you assign a $1.... to it
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Upload file through perl-cgi not working
by becool321 (Initiate) on Aug 23, 2011 at 05:05 UTC |