diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-03-31 14:58:24 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-06-01 17:03:51 +0200 |
commit | 73875da4b0d4b273e89906d5ed0567d05c963e05 (patch) | |
tree | b56df691dabe92fc7977e64fb925e1fbd5f09991 /lib | |
parent | 418f4e1a90014b51bf9e1194711fb9118f7a795b (diff) | |
download | nextcloud-server-73875da4b0d4b273e89906d5ed0567d05c963e05.tar.gz nextcloud-server-73875da4b0d4b273e89906d5ed0567d05c963e05.zip |
Clean application identifier before processing
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/route/router.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/route/router.php b/lib/private/route/router.php index fd1e4440c4f..48992366092 100644 --- a/lib/private/route/router.php +++ b/lib/private/route/router.php @@ -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/') { |