summaryrefslogtreecommitdiffstats
path: root/core/ajax/appconfig.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/ajax/appconfig.php')
-rw-r--r--core/ajax/appconfig.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/ajax/appconfig.php b/core/ajax/appconfig.php
index 1d066d9169a..05b7572c6d7 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.