From 6d1f927b3fc6582c42aa75dde01573714149292e Mon Sep 17 00:00:00 2001 From: DarkAngelBGE Date: Tue, 13 May 2008 21:27:33 +0000 Subject: [PATCH] fixes #4495 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6854 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/console/cake.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/console/cake.php b/cake/console/cake.php index 74c66cbc0..d99e225d4 100644 --- a/cake/console/cake.php +++ b/cake/console/cake.php @@ -442,7 +442,7 @@ class ShellDispatcher { $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['app'])) { + if ($this->params['app']{0} == '/' || preg_match('/([a-z])(:)(\\\\)/i', substr($this->params['app'], 0, 3))) { $root = dirname($this->params['working']); $app = basename($this->params['working']); } else {