Skip to content

Commit aa7bebe

Browse files
[HttpClient] Fix Process-based escaping in HttpClientDataCollector
1 parent e9b0846 commit aa7bebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DataCollector/HttpClientDataCollector.php

+1-1
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)