|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re: request for review: file reading securityby cchampion (Curate) |
| on Sep 05, 2004 at 10:45 UTC ( #388590=note: print w/ replies, xml ) | Need Help?? |
|
It isn't only the security. Your line $req = 'index' if -e $req; will make all requests invoke "index". Your code means " assign to 'index' if a file named $req exists". I am not sure what you wanted to achieve that way, but here is how I would do it.
Also, consider using CGI param instead of reading the environment. HTH
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||