note 82952 deleted from function.escapeshellarg by daverandom
| From: | daverandom@php.net | Date: | Sun, 24 Mar 2019 02:23:43 +0000 |
| Subject: | note 82952 deleted from function.escapeshellarg by daverandom | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-210433@lists.php.net to get a copy of this message | ||
Note Submitter: Cameron
----
in regards to the bug returning no string where it should return "" or '', just
do
<?php
shell_exec("example ". (($arg=escapeshellarg($arg))? $arg : "''"));
?>