summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private')
-rwxr-xr-xlib/private/request.php6
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;
+ }
}
/**