[Pkg-owncloud-commits] [owncloud] 110/145: Check whether the app is set

David Prévot taffit at moszumanska.debian.org
Wed Feb 26 16:27:46 UTC 2014


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

taffit pushed a commit to branch master
in repository owncloud.

commit ebb1a70abcddcb402a4bda24c1e6a4ddc2ab0665
Author: Lukas Reschke <lukas at statuscode.ch>
Date:   Tue Feb 18 14:12:49 2014 +0100

    Check whether the app is set
---
 core/ajax/appconfig.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/core/ajax/appconfig.php b/core/ajax/appconfig.php
index 1d066d9..05b7572 100644
--- a/core/ajax/appconfig.php
+++ b/core/ajax/appconfig.php
@@ -9,7 +9,10 @@ OC_Util::checkAdminUser();
 OCP\JSON::callCheck();
 
 $action=isset($_POST['action'])?$_POST['action']:$_GET['action'];
-$app=OC_App::cleanAppId(isset($_POST['app'])?$_POST['app']:$_GET['app']);
+
+if(isset($_POST['app']) || isset($_GET['app'])) {
+	$app=OC_App::cleanAppId(isset($_POST['app'])?$_POST['app']:$_GET['app']);
+}
 
 // An admin should not be able to add remote and public services
 // on its own. This should only be possible programmatically.

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