[Pkg-owncloud-commits] [owncloud] 04/12: Clean application identifier before processing

David Prévot taffit at moszumanska.debian.org
Tue Jun 2 01:14:03 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit a15710afad054953cc348f2dd719c73b60985bce
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 9c973d7..a6ff51b 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/') {

-- 
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