]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix getRawPathInfo for the '/' edge case
authorRobin Appelman <icewind@owncloud.com>
Wed, 27 Nov 2013 20:28:54 +0000 (21:28 +0100)
committerRobin Appelman <icewind@owncloud.com>
Thu, 28 Nov 2013 12:11:32 +0000 (13:11 +0100)
lib/request.php

index ba5c2208e3b289179a88d9be1dcf5ca85131eb4f..0abc6e7b4b02b8bbd963d36b593f74b71e8afbe9 100755 (executable)
@@ -164,7 +164,11 @@ class OC_Request {
                if (strpos($path_info, $name) === 0) {
                        $path_info = substr($path_info, strlen($name));
                }
-               return $path_info;
+               if($path_info === '/'){
+                       return '';
+               } else {
+                       return $path_info;
+               }
        }
 
        /**