diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-11-27 21:28:54 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-11-27 21:28:54 +0100 |
commit | 885d04bc86ef5e34977cf7df6cb55c991d5d3306 (patch) | |
tree | 68c74df8016df45330ae5102880f88290c1dd891 /lib/private | |
parent | c47e46fda096563eadfae49308c7f436611a286b (diff) | |
download | nextcloud-server-885d04bc86ef5e34977cf7df6cb55c991d5d3306.tar.gz nextcloud-server-885d04bc86ef5e34977cf7df6cb55c991d5d3306.zip |
Fix getRawPathInfo for the '/' edge case
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; + } } /** |