note 92421 added to function.escapeshellarg
| From: | rmays at castlecomm dot com | Date: | Thu, 23 Jul 2009 17:34:31 +0000 |
| Subject: | note 92421 added to function.escapeshellarg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-158649@lists.php.net to get a copy of this message | ||
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!!!!
----
Server IP: 69.147.83.197
Probable Submitter: 63.217.142.210
----
Manual Page -- http://www.php.net/manual/en/function.escapeshellarg.php
Edit -- https://master.php.net/note/edit/92421
Del: integrated -- https://master.php.net/note/delete/92421/integrated
Del: useless -- https://master.php.net/note/delete/92421/useless
Del: bad code -- https://master.php.net/note/delete/92421/bad+code
Del: spam -- https://master.php.net/note/delete/92421/spam
Del: non-english -- https://master.php.net/note/delete/92421/non-english
Del: in docs -- https://master.php.net/note/delete/92421/in+docs
Del: other reasons-- https://master.php.net/note/delete/92421
Reject -- https://master.php.net/note/reject/92421
Search -- https://master.php.net/manage/user-notes.php