From: Marcel Werk Date: Sat, 1 Jun 2013 15:08:54 +0000 (+0200) Subject: Fixed path_info issue X-Git-Tag: 2.0.0_Beta_3~51^2~10 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a10a3e5baa247992fc717ae316a2fd7c019d1309;p=GitHub%2FWoltLab%2FWCF.git Fixed path_info issue --- diff --git a/wcfsetup/install/files/lib/system/request/RouteHandler.class.php b/wcfsetup/install/files/lib/system/request/RouteHandler.class.php index 8eaa4898f2..ce76065979 100644 --- a/wcfsetup/install/files/lib/system/request/RouteHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RouteHandler.class.php @@ -261,7 +261,10 @@ class RouteHandler extends SingletonFactory { */ public static function getPathInfo() { if (empty(self::$pathInfo)) { - if (isset($_SERVER['ORIG_PATH_INFO'])) { + if (isset($_SERVER['PATH_INFO'])) { + self::$pathInfo = $_SERVER['PATH_INFO']; + } + else if (isset($_SERVER['ORIG_PATH_INFO'])) { self::$pathInfo = $_SERVER['ORIG_PATH_INFO']; // in some configurations ORIG_PATH_INFO contains the path to the file @@ -280,9 +283,6 @@ class RouteHandler extends SingletonFactory { } } } - else if (isset($_SERVER['PATH_INFO'])) { - self::$pathInfo = $_SERVER['PATH_INFO']; - } } return self::$pathInfo;