[API] Unset POST when only GET is allowed
parent
ab298741e3
commit
416d5a12f8
|
@ -221,6 +221,7 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
|
|||
'type' => 'error',
|
||||
'msg' => 'only GET method is allowed'
|
||||
));
|
||||
unset($_POST);
|
||||
die();
|
||||
}
|
||||
switch ($category) {
|
||||
|
|
Loading…
Reference in New Issue