note 92420 deleted from function.escapeshellarg by danbrown
| From: | danbrown@php.net | Date: | Thu, 23 Jul 2009 17:35:19 +0000 |
| Subject: | note 92420 deleted from function.escapeshellarg by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-158650@lists.php.net to get a copy of this message | ||
Note Submitter: rmays at castlecomm dot com
----
A warning on how this handles single quotes in a string
Example:
print escapeshellarg(" single quote'd ");
Expected:
' single quote\'d '
Actual Result:
' single quote'\''d '
So if you pass a ' into this function, it will return an incorrectly escaped string!!!!