From a10a3e5baa247992fc717ae316a2fd7c019d1309 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sat, 1 Jun 2013 17:08:54 +0200 Subject: [PATCH] Fixed path_info issue --- .../files/lib/system/request/RouteHandler.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.20.1