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:
Mark Story 2013-08-06 10:01:51 -07:00
commit f57e315061

View file

@ -129,8 +129,8 @@ class ServerShell extends AppShell {
$command = sprintf("php -S %s:%d -t %s %s",
$this->_host,
$this->_port,
$this->_documentRoot,
$this->_documentRoot . '/index.php'
escapeshellarg($this->_documentRoot),
escapeshellarg($this->_documentRoot . '/index.php')
);
$port = ($this->_port == self::DEFAULT_PORT) ? '' : ':' . $this->_port;