Fixed path_info issue
authorMarcel Werk <burntime@woltlab.com>
Sat, 1 Jun 2013 15:08:54 +0000 (17:08 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sat, 1 Jun 2013 15:08:54 +0000 (17:08 +0200)
wcfsetup/install/files/lib/system/request/RouteHandler.class.php

index 8eaa4898f24f6c47019f98e7398365b1ff23d73c..ce76065979e5f178c5a7f8190c23282a4ca011a1 100644 (file)
@@ -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;