diff options
Diffstat (limited to 'lib/private')
-rwxr-xr-x | lib/private/request.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/request.php b/lib/private/request.php index 6b4a2321bac..b2afda35922 100755 --- a/lib/private/request.php +++ b/lib/private/request.php @@ -165,7 +165,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; + } } /** |