mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
Clean application identifier before processing
This commit is contained in:
parent
418f4e1a90
commit
73875da4b0
1 changed files with 2 additions and 0 deletions
|
|
@ -231,6 +231,8 @@ class Router implements IRouter {
|
|||
if (substr($url, 0, 6) === '/apps/') {
|
||||
// empty string / 'apps' / $app / rest of the route
|
||||
list(, , $app,) = explode('/', $url, 4);
|
||||
|
||||
$app = \OC_App::cleanAppId($app);
|
||||
\OC::$REQUESTEDAPP = $app;
|
||||
$this->loadRoutes($app);
|
||||
} else if (substr($url, 0, 6) === '/core/' or substr($url, 0, 10) === '/settings/') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue