note 104426 deleted from function.escapeshellarg by danbrown
| From: | danbrown@php.net | Date: | Wed, 15 Jun 2011 16:50:50 +0000 |
| Subject: | note 104426 deleted from function.escapeshellarg by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-180560@lists.php.net to get a copy of this message | ||
Note Submitter: Marc MAURICE
----
If you don't want to rely on installed locales, you can use this instead of escapeshellarg
fonction:
$escapedArg = "'".str_replace("'", "'\\''",
$arg)."'";
More details here :
http://en.positon.org/post/PHP-escapeshellarg-function-UTF8-and-locales