diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-28 00:00:09 -0800 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-28 00:00:09 -0800 |
commit | f23d641b82b0b8f2834983800b3520fcadf6bd71 (patch) | |
tree | 3366d7f2d3d086011b48f7a13a4eaf80b65ce719 | |
parent | 54b24ca88d34bfdafaeecb12c9c8ba85e21de8f7 (diff) | |
parent | 885d04bc86ef5e34977cf7df6cb55c991d5d3306 (diff) | |
download | nextcloud-server-f23d641b82b0b8f2834983800b3520fcadf6bd71.tar.gz nextcloud-server-f23d641b82b0b8f2834983800b3520fcadf6bd71.zip |
Merge pull request #6084 from owncloud/fix-app-routing
fix custom routes defined by apps
-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 37d918d2032..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 rtrim($path_info, '/'); + if($path_info === '/'){ + return ''; + } else { + return $path_info; + } } /** |