git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6854 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
DarkAngelBGE 2008-05-13 21:27:33 +00:00
parent 5c1878afec
commit 6d1f927b3f

View file

@ -442,7 +442,7 @@ class ShellDispatcher {
$root = dirname(dirname(dirname(__FILE__))); $root = dirname(dirname(dirname(__FILE__)));
if (!empty($this->params['working']) && (!isset($this->args[0]) || isset($this->args[0]) && $this->args[0]{0} !== '.')) { if (!empty($this->params['working']) && (!isset($this->args[0]) || isset($this->args[0]) && $this->args[0]{0} !== '.')) {
if (empty($this->params['app'])) { if ($this->params['app']{0} == '/' || preg_match('/([a-z])(:)(\\\\)/i', substr($this->params['app'], 0, 3))) {
$root = dirname($this->params['working']); $root = dirname($this->params['working']);
$app = basename($this->params['working']); $app = basename($this->params['working']);
} else { } else {