1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Fix cmd splitting paths on commas (#10775)

This commit is contained in:
John Stevenson 2022-05-12 20:13:55 +01:00 committed by GitHub
parent aeb204bb1d
commit 2837585e47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -178,6 +178,9 @@ class ProcessExecutorTest extends TestCase
// no whitespace must not be quoted
'no-ws' => array('abc', 'abc', "'abc'"),
// commas must be quoted
'comma' => array('a,bc', '"a,bc"', "'a,bc'"),
// double-quotes must be backslash-escaped
'dq' => array('a"bc', 'a\^"bc', "'a\"bc'"),