From a15710afad054953cc348f2dd719c73b60985bce Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Tue, 31 Mar 2015 14:58:24 +0200 Subject: [PATCH] Clean application identifier before processing --- lib/private/route/router.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/private/route/router.php b/lib/private/route/router.php index 9c973d7ac6a..a6ff51b9b5e 100644 --- a/lib/private/route/router.php +++ b/lib/private/route/router.php @@ -204,6 +204,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/') { -- 2.39.5