note 93144 deleted from function.escapeshellarg by danbrown
| From: | danbrown@php.net | Date: | Tue, 25 Aug 2009 16:22:00 +0000 |
| Subject: | note 93144 deleted from function.escapeshellarg by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-159875@lists.php.net to get a copy of this message | ||
Note Submitter: spam at mettle dot dk
----
No - the returned output from escapeshellarg(" single quote'd ") is correct. The
correct escape sequence is ' single quote'\''d ' because you cannot escape
' within '...'.
Try it youselves:
jvc@xps:~$ echo ' single quote'\''d '
single quote'd