note 19524 added to function.escapeshellarg
| From: | ghopper at php2 dot chek dot com | Date: | Fri, 01 Mar 2002 17:22:31 +0000 |
| Subject: | note 19524 added to function.escapeshellarg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-27238@lists.php.net to get a copy of this message | ||
I suggest that you use some variation of this to clean your user-submitted inputs:
$arg = preg_replace ("/[^A-Za-z0-9]/","",$arg);
This function will remove any characters that you do not expect from the user. Add any legal
characters that you expect in the input to the regular expression.
--
http://www.php.net/manual/en/function.escapeshellarg.php
http://master.php.net/manage/user-notes.php?action=edit+19524
http://master.php.net/manage/user-notes.php?action=delete+19524
http://master.php.net/manage/user-notes.php?action=reject+19524