Merge pull request #6084 from owncloud/fix-app-routing
fix custom routes defined by apps
This commit is contained in:
commit
f23d641b82
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue