1
0
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:
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

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