mirror of
https://github.com/nextcloud/server.git
synced 2026-05-25 02:34:12 -04:00
Check whether the app is set
This commit is contained in:
parent
b9d013e3ce
commit
ebb1a70abc
1 changed files with 4 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue