#26285 [Opn->Asn]: escapeshellarg uses wrong quotes on windows

From: Date: Wed, 19 Nov 2003 01:18:49 +0000
Subject: #26285 [Opn->Asn]: escapeshellarg uses wrong quotes on windows
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-50676@lists.php.net to get a copy of this message
ID: 26285 Updated by: iliaa@php.net Reported By: jb at ez dot no -Status: Open +Status: Assigned Bug Type: *General Issues Operating System: Windows PHP Version: 4.3.3 -Assigned To: +Assigned To: iliaa Previous Comments: ------------------------------------------------------------------------ [2003-11-17 06:43:20] jb at ez dot no Description: ------------ The escapeshellarg function in PHP creates wrongly escaped text on windows. It seems it always uses the single-quote (') for escaping the strings, however on windows the correct way to escape is using the double-quote (") character. The same problems seems to be in the escapeshellcmd function as well. Reproduce code: --------------- escapeshellarg( "-arg value" ); Expected result: ---------------- "-arg value" Actual result: -------------- '-arg value' ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26285&edit=1

« previous php.bugs (#50676) next »