From: Alexander Ebert Date: Thu, 4 Jun 2015 14:54:06 +0000 (+0200) Subject: Fixed redirect if accessing direct root of non-primary application X-Git-Tag: 2.1.5~29 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5d57fcfd552f638eacbc59c1bfb4b5d075465bb4;p=GitHub%2FWoltLab%2FWCF.git Fixed redirect if accessing direct root of non-primary application --- diff --git a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php index 2527266754..dbd4fb3996 100644 --- a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php @@ -302,14 +302,7 @@ class RequestHandler extends SingletonFactory { if (!URL_LEGACY_MODE) $routeData['controller'] = self::getTokenizedController($routeData['controller']); return; } - else { - $routeData['controller'] = WCF::getApplicationObject(ApplicationHandler::getInstance()->getApplication($application))->getPrimaryController(); - $routeData['controller'] = preg_replace('~.*?\\\([^\\\]+)(?:Form|Page)$~', '$1', $routeData['controller']); - if (!URL_LEGACY_MODE) $routeData['controller'] = self::getTokenizedController($routeData['controller']); - return; - } - // TODO: what is this supposed to do? HeaderUtil::redirect($landingPage->getLink()); exit; }