[Pkg-owncloud-commits] [owncloud] 242/457: Clean application identifier before processing
David Prévot
taffit at moszumanska.debian.org
Sun Jun 28 20:06:15 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 73875da4b0d4b273e89906d5ed0567d05c963e05
Author: Lukas Reschke <lukas at owncloud.com>
Date: Tue Mar 31 14:58:24 2015 +0200
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 fd1e444..4899236 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/') {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list