Fixed redirect if accessing direct root of non-primary application
authorAlexander Ebert <ebert@woltlab.com>
Thu, 4 Jun 2015 14:54:06 +0000 (16:54 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 4 Jun 2015 14:54:06 +0000 (16:54 +0200)
wcfsetup/install/files/lib/system/request/RequestHandler.class.php

index 25272667542d6ba16a125130e5c931aae0510a44..dbd4fb399687ae742f14ce50c40166af1c2e9f63 100644 (file)
@@ -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;
        }