Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-03-31 15:58:24 +0300
committerLukas Reschke <lukas@owncloud.com>2015-06-01 18:05:02 +0300
commit6867d45ffc931973e2720ad20e1020de84a77175 (patch)
treed4dc0fc12351210d92efff50bfdc0eaa09588637 /lib
parenta035198f4b4b82564401d935bcc0bc4c6a07588c (diff)
Clean application identifier before processing
Diffstat (limited to 'lib')
-rw-r--r--lib/private/route/router.php2
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/') {