1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-12-24 07:11:32 +00: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

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