note 123281 added to function.escapeshellarg
| From: | Jasen@php.net | Date: | Tue, 30 Oct 2018 19:49:44 +0000 |
| Subject: | note 123281 added to function.escapeshellarg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-209558@lists.php.net to get a copy of this message | ||
if you want empty arguments for empty input
use the form
escapeshellarg($input)."''"
the shell will treat foo'' as foo but empty input will become an empty argument instead
of a missing one.
----
Server IP: 208.43.231.9
Probable Submitter: 116.90.140.41
----
Manual Page -- http://php.net/manual/en/function.escapeshellarg.php
Edit -- https://master.php.net/note/edit/123281
Del: integrated -- https://master.php.net/note/delete/123281/integrated
Del: useless -- https://master.php.net/note/delete/123281/useless
Del: bad code -- https://master.php.net/note/delete/123281/bad+code
Del: spam -- https://master.php.net/note/delete/123281/spam
Del: non-english -- https://master.php.net/note/delete/123281/non-english
Del: in docs -- https://master.php.net/note/delete/123281/in+docs
Del: other reasons-- https://master.php.net/note/delete/123281
Reject -- https://master.php.net/note/reject/123281
Search -- https://master.php.net/manage/user-notes.php