summaryrefslogtreecommitdiffstats
path: root/lib/private/request.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-11-27 21:28:54 +0100
committerRobin Appelman <icewind@owncloud.com>2013-11-27 21:28:54 +0100
commit885d04bc86ef5e34977cf7df6cb55c991d5d3306 (patch)
tree68c74df8016df45330ae5102880f88290c1dd891 /lib/private/request.php
parentc47e46fda096563eadfae49308c7f436611a286b (diff)
downloadnextcloud-server-885d04bc86ef5e34977cf7df6cb55c991d5d3306.tar.gz
nextcloud-server-885d04bc86ef5e34977cf7df6cb55c991d5d3306.zip
Fix getRawPathInfo for the '/' edge case
Diffstat (limited to 'lib/private/request.php')
-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;
+ }
}
/**