[Web] Write API logs when format is data binary

This commit is contained in:
andryyy 2019-05-12 15:22:00 +02:00
parent ff1b57315d
commit 06193ca625
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF

View File

@ -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',