From 5d57fcfd552f638eacbc59c1bfb4b5d075465bb4 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 4 Jun 2015 16:54:06 +0200 Subject: [PATCH] Fixed redirect if accessing direct root of non-primary application --- .../files/lib/system/request/RequestHandler.class.php | 7 ------- 1 file changed, 7 deletions(-) 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; } -- 2.20.1