[API] Unset POST when only GET is allowed

master
ntimo 2019-10-03 15:06:08 +02:00
parent ab298741e3
commit 416d5a12f8
No known key found for this signature in database
GPG Key ID: 3AF3627FB0440D55
1 changed files with 1 additions and 0 deletions

View File

@ -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) {