From: Robin Appelman Date: Wed, 27 Nov 2013 14:35:49 +0000 (+0100) Subject: fix custom routes defined by apps X-Git-Tag: v5.0.14~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=527afe99ec5a710a142beb0ac0626b72273724d5;p=nextcloud-server.git fix custom routes defined by apps --- diff --git a/lib/request.php b/lib/request.php index 1e19fd72eb0..ba5c2208e3b 100755 --- a/lib/request.php +++ b/lib/request.php @@ -164,7 +164,7 @@ class OC_Request { if (strpos($path_info, $name) === 0) { $path_info = substr($path_info, strlen($name)); } - return rtrim($path_info, '/'); + return $path_info; } /**