mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-01-06 03:54:12 +02:00
[API] Unset POST when only GET is allowed
This commit is contained in:
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
Block a user