mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 10:36:16 +00:00
fixes #4495
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6854 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
5c1878afec
commit
6d1f927b3f
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue