mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-12-21 22:01:31 +00:00
[Web] Write API logs when format is data binary
This commit is contained in:
@@ -53,8 +53,6 @@ function api_log($_data) {
|
||||
}
|
||||
}
|
||||
|
||||
api_log($_POST);
|
||||
|
||||
if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_username'])) {
|
||||
if (isset($_GET['query'])) {
|
||||
|
||||
@@ -94,11 +92,8 @@ if (isset($_SESSION['mailcow_cc_role']) || isset($_SESSION['pending_mailcow_cc_u
|
||||
$_POST['items'] = $request;
|
||||
}
|
||||
|
||||
unset($_SESSION['return']);
|
||||
unset($_SESSION['success']);
|
||||
unset($_SESSION['danger']);
|
||||
unset($_SESSION['error']);
|
||||
}
|
||||
api_log($_POST);
|
||||
|
||||
$request_incomplete = json_encode(array(
|
||||
'type' => 'error',
|
||||
|
||||
Reference in New Issue
Block a user