[Pkg-owncloud-commits] [owncloud] 41/66: Check whether the app is set

David Prévot taffit at moszumanska.debian.org
Fri Apr 18 22:49:46 UTC 2014


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

taffit pushed a commit to annotated tag v5.0.15
in repository owncloud.

commit 626b90fa84542c90d27a5533df415324d1f1c1be
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