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:05:02 +0200 |
commit | 6867d45ffc931973e2720ad20e1020de84a77175 (patch) | |
tree | d4dc0fc12351210d92efff50bfdc0eaa09588637 /lib/private | |
parent | a035198f4b4b82564401d935bcc0bc4c6a07588c (diff) | |
download | nextcloud-server-6867d45ffc931973e2720ad20e1020de84a77175.tar.gz nextcloud-server-6867d45ffc931973e2720ad20e1020de84a77175.zip |
Clean application identifier before processing
Diffstat (limited to 'lib/private')
-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 3559b841926..d38c54d2446 100644 --- a/lib/private/route/router.php +++ b/lib/private/route/router.php @@ -209,6 +209,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/') { |