mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Merge pull request #1480 from uzyn/fix/shell-space-docroot
Fixes a bug where server would not run when there are spaces in documentRoot
This commit is contained in:
commit
f57e315061
1 changed files with 2 additions and 2 deletions
|
@ -129,8 +129,8 @@ class ServerShell extends AppShell {
|
||||||
$command = sprintf("php -S %s:%d -t %s %s",
|
$command = sprintf("php -S %s:%d -t %s %s",
|
||||||
$this->_host,
|
$this->_host,
|
||||||
$this->_port,
|
$this->_port,
|
||||||
$this->_documentRoot,
|
escapeshellarg($this->_documentRoot),
|
||||||
$this->_documentRoot . '/index.php'
|
escapeshellarg($this->_documentRoot . '/index.php')
|
||||||
);
|
);
|
||||||
|
|
||||||
$port = ($this->_port == self::DEFAULT_PORT) ? '' : ':' . $this->_port;
|
$port = ($this->_port == self::DEFAULT_PORT) ? '' : ':' . $this->_port;
|
||||||
|
|
Loading…
Add table
Reference in a new issue