Closed SiestaCat closed 1 year ago
Looks like this issue cropped up with the recent addition of Windows support.
Thanks for the report, looking into it. Should have a fix soon.
Fixed and released in https://github.com/donatj/mock-webserver/releases/tag/v2.6.2
Hello
I get this error in php built-in server:
Because the script path have white spaces. For example:
D:\MY PROJECT\symfony\vendor\donatj\mock-webserver\src\..\server\server.php
Guilty line: vendor\donatj\mock-webserver\src\MockWebServer.php:57
$cmd = "php -S {$this->host}:{$this->port} " . $script;
Please, can you use escapeshellarg or similar around
$script
variable?For example:
$cmd = "php -S {$this->host}:{$this->port} " . escapeshellarg($script);
Thanks a lot