Check whether the app is set

This commit is contained in:
Lukas Reschke 2014-02-18 14:12:49 +01:00
parent 1352c63dca
commit c19cacb29f
1 changed files with 4 additions and 1 deletions

View File

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