aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-11-28 00:00:09 -0800
committerThomas Müller <thomas.mueller@tmit.eu>2013-11-28 00:00:09 -0800
commitf23d641b82b0b8f2834983800b3520fcadf6bd71 (patch)
tree3366d7f2d3d086011b48f7a13a4eaf80b65ce719
parent54b24ca88d34bfdafaeecb12c9c8ba85e21de8f7 (diff)
parent885d04bc86ef5e34977cf7df6cb55c991d5d3306 (diff)
downloadnextcloud-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-xlib/private/request.php6
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;
+ }
}
/**