ID: 45981 Updated by: [EMAIL PROTECTED] Reported By: jeroen at asystance dot nl -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: debian linux PHP Version: 5.2CVS-2008-09-03 (snap) New Comment:
How is it supposed to know that the string argument is already escaped? What is done in your example is not different than: print_r(escapeshellarg(escapeshellarg("single ' quote"))); Not a bug. Previous Comments: ------------------------------------------------------------------------ [2008-09-03 13:05:10] jeroen at asystance dot nl Description: ------------ escapeshellarg inserts single quotes (') before and after an escaped single quote I observed the bug in 5.2.6-3 and the php5.3-200809031030 CVS snapshot Reproduce code: --------------- <?php echo escapeshellarg("single ' quote") . "\n"; echo escapeshellarg('single \' quote') . "\n"; ?> Expected result: ---------------- 'single \' quote' 'single \' quote' Actual result: -------------- 'single '\'' quote' 'single '\'' quote' ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45981&edit=1