Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e28af34

Browse filesBrowse files
[HttpClient] Fix Process-based escaping in HttpClientDataCollector
1 parent 48980a2 commit e28af34
Copy full SHA for e28af34

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/HttpClient/DataCollector/HttpClientDataCollector.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpClient/DataCollector/HttpClientDataCollector.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ private function escapePayload(string $payload): string
253253
static $useProcess;
254254

255255
if ($useProcess ??= function_exists('proc_open') && class_exists(Process::class)) {
256-
return (new Process([$payload]))->getCommandLine();
256+
return substr((new Process(['', $payload]))->getCommandLine(), 3);
257257
}
258258

259259
if ('\\' === \DIRECTORY_SEPARATOR) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.