From: Lukas Reschke Date: Tue, 18 Feb 2014 13:12:49 +0000 (+0100) Subject: Check whether the app is set X-Git-Tag: v5.0.15RC1~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=626b90fa84542c90d27a5533df415324d1f1c1be;p=nextcloud-server.git Check whether the app is set --- 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.