Fix for misleading environment variable on IIS 7.0
authorAlexander Ebert <ebert@woltlab.com>
Wed, 3 Jul 2013 19:41:50 +0000 (21:41 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 3 Jul 2013 19:41:50 +0000 (21:41 +0200)
wcfsetup/install/files/lib/system/request/RequestHandler.class.php

index 40ecc3c01830c2fd783799fec2bef3c724d5b663..a291d68d286745fe9f4e60d0076dc959f607c552 100644 (file)
@@ -111,7 +111,7 @@ class RequestHandler extends SingletonFactory {
                                        $redirectURL = $landingPage->getLink();
                                        $relativeRoute = StringUtil::replace(RouteHandler::getHost(), '', $redirectURL);
                                        
-                                       if ($relativeRoute == $_SERVER['REQUEST_URI'] || $relativeRoute == preg_replace('~([?&]s=[a-f0-9]{40})~', '', $_SERVER['REQUEST_URI'])) {
+                                       if ($relativeRoute == preg_replace('~index.php$~i', '', $_SERVER['REQUEST_URI']) || $relativeRoute == preg_replace('~([?&]s=[a-f0-9]{40})~', '', $_SERVER['REQUEST_URI'])) {
                                                $routeData['controller'] = $landingPage->getController();
                                        }
                                        else {