in reply to Stumped with File::Find and -s
You will note, though, that this is pretty bold, taking a parameter in from the CGI input and making a directory based on that name. You should take great care to make sure that this directory name is valid, and, for example, doesn't contain values like "../../../.w4r3z/"use File::Path; # ... unless (-d $upload_dir) { mkpath($upload_dir); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re:Stumped with File::Find and -s
by bsexton1qBob Sexton (Novice) on Nov 22, 2002 at 01:55 UTC |