naming a directory after a user-submitted string
| From: | Joey Manley | Date: | Wed, 28 Jan 2004 04:00:29 +0000 |
| Subject: | naming a directory after a user-submitted string | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175999@lists.php.net to get a copy of this message | ||
Thanks for the thoughts on .sit files. I still don't quite know what I'll
do (maybe I'll just force'em to make .zips -- it's not like it's IMPOSSIBLE
for a Mac to make .zips).
Here's another question, possibly easier. Possibly even bone-headed.
What kind of checking/filtering/changing do I need to do on a user-submitted
string before I can feel comfortable using it to name a new directory in the
web root on Linux/Apache? Anybody have a quick Regular Expression they can
toss at me? If so, I'd be muchly appreciative. Or is this just a Terrible
Idea That Should Never Be Contemplated?
Thanks!
Joey
www.moderntales.com