We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 056486a + 1e6f003 commit 367e266Copy full SHA for 367e266
packages/framework/src/Console/Commands/ServeCommand.php
@@ -54,7 +54,7 @@ public function safeHandle(): int
54
$this->runServerProcess(sprintf('php -S %s:%d %s',
55
$this->getHostSelection(),
56
$this->getPortSelection(),
57
- $this->getExecutablePath()
+ escapeshellarg($this->getExecutablePath()),
58
));
59
60
return Command::SUCCESS;
packages/framework/tests/Feature/Commands/ServeCommandTest.php
@@ -176,6 +176,6 @@ public function testWithFancyOutput()
176
177
protected function binaryPath(): string
178
{
179
- return Hyde::path('vendor/hyde/realtime-compiler/bin/server.php');
+ return escapeshellarg(Hyde::path('vendor/hyde/realtime-compiler/bin/server.php'));
180
}
181
0 commit comments