in reply to Re^3: request for review: file reading security
in thread request for review: file reading security
His regular expression does the job well. It strips everything until the last /
$req = 'blah/../../topsecretpages/page.html'; $req =~ s/^.*\///; print $req; __END__ page.html
|
---|