From 9e84628e6be11ff45f407b1201c5624db7e829c3 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 29 Oct 2012 02:12:19 +0100 Subject: [PATCH] Fixed redirect URLs --- wcfsetup/install/files/lib/acp/action/LogoutAction.class.php | 5 ++++- wcfsetup/install/files/lib/acp/form/LoginForm.class.php | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/action/LogoutAction.class.php b/wcfsetup/install/files/lib/acp/action/LogoutAction.class.php index ea6813e007..7ffdf8c880 100755 --- a/wcfsetup/install/files/lib/acp/action/LogoutAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/LogoutAction.class.php @@ -1,6 +1,7 @@ getActiveApplication(); + $path = $application->getPageURL() . 'acp/index.php' . SID_ARG_1ST; + HeaderUtil::redirect($path); exit; } } diff --git a/wcfsetup/install/files/lib/acp/form/LoginForm.class.php b/wcfsetup/install/files/lib/acp/form/LoginForm.class.php index c7f0d9a090..d2bcda3105 100755 --- a/wcfsetup/install/files/lib/acp/form/LoginForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LoginForm.class.php @@ -2,6 +2,7 @@ namespace wcf\acp\form; use wcf\data\user\User; use wcf\form\AbstractForm; +use wcf\system\application\ApplicationHandler; use wcf\system\exception\PermissionDeniedException; use wcf\system\exception\UserInputException; use wcf\system\user\authentication\EmailUserAuthentication; @@ -139,7 +140,9 @@ class LoginForm extends AbstractForm { HeaderUtil::redirect($this->url); } else { - HeaderUtil::redirect('index.php'.SID_ARG_1ST); + $application = ApplicationHandler::getInstance()->getActiveApplication(); + $path = $application->getPageURL() . 'acp/index.php' . SID_ARG_1ST; + HeaderUtil::redirect($path); } exit; } -- 2.20.1