note 108322 added to function.escapeshellcmd
| From: | phpcomment at reversiblemaps dot ath dot cx | Date: | Tue, 17 Apr 2012 11:31:19 +0000 |
| Subject: | note 108322 added to function.escapeshellcmd | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-187203@lists.php.net to get a copy of this message | ||
escaping strings for a shell is tricky.
If your target system is windows give up now. windows isn't even self consisitent in how to
escape stuff.
if unix convert everything to octal - although this is hardest to implement it's the easiest
to implement correctly - there are no special cases..