Skip to content
Snippets Groups Projects
Commit 73875da4 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Clean application identifier before processing

parent 418f4e1a
No related branches found
No related tags found
No related merge requests found
...@@ -231,6 +231,8 @@ class Router implements IRouter { ...@@ -231,6 +231,8 @@ class Router implements IRouter {
if (substr($url, 0, 6) === '/apps/') { if (substr($url, 0, 6) === '/apps/') {
// empty string / 'apps' / $app / rest of the route // empty string / 'apps' / $app / rest of the route
list(, , $app,) = explode('/', $url, 4); list(, , $app,) = explode('/', $url, 4);
$app = \OC_App::cleanAppId($app);
\OC::$REQUESTEDAPP = $app; \OC::$REQUESTEDAPP = $app;
$this->loadRoutes($app); $this->loadRoutes($app);
} else if (substr($url, 0, 6) === '/core/' or substr($url, 0, 10) === '/settings/') { } else if (substr($url, 0, 6) === '/core/' or substr($url, 0, 10) === '/settings/') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment