Merge pull request #6084 from owncloud/fix-app-routing

fix custom routes defined by apps
This commit is contained in:
Thomas Müller 2013-11-28 00:00:09 -08:00
commit f23d641b82
1 changed files with 5 additions and 1 deletions

View File

@ -165,7 +165,11 @@ class OC_Request {
if (strpos($path_info, $name) === 0) { if (strpos($path_info, $name) === 0) {
$path_info = substr($path_info, strlen($name)); $path_info = substr($path_info, strlen($name));
} }
return rtrim($path_info, '/'); if($path_info === '/'){
return '';
} else {
return $path_info;
}
} }
/** /**