Bug #68140 [Opn->Fbk]: escapeshellarg doesn't escape double quotes, it removes them instead

From: Date: Sat, 04 Oct 2014 10:15:25 +0000
Subject: Bug #68140 [Opn->Fbk]: escapeshellarg doesn't escape double quotes, it removes them instead
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187840@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68140&edit=1 ID: 68140 Updated by: ab@php.net Reported by: petrhudecek2010 at gmail dot com Summary: escapeshellarg doesn't escape double quotes, it removes them instead -Status: Open +Status: Feedback Type: Bug Package: Program Execution Operating System: Windows 8.1 PHP Version: 5.6.1 Block user comment: N Private report: N New Comment: What is the particular command you're running? Thanks. Previous Comments: ------------------------------------------------------------------------ [2014-10-03 06:08:21] petrhudecek2010 at gmail dot com Description: ------------ On Windows, the function escapeshellarg quotes the string in double quotes but instead of escaping existing double quotes, it removes them instead. Test script: --------------- <?php echo escapeshellarg('"'); Expected result: ---------------- "\"" Actual result: -------------- " " ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68140&edit=1

« previous php.bugs (#187840) next »