fix: [logging] paranoid log entry not logging request body via the API

pull/5239/head
iglocska 2019-09-26 10:26:32 +02:00
parent 6cef8bb5c3
commit 213cd99ebf
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ class AppController extends Controller
$this->Log->create();
$change = 'HTTP method: ' . $_SERVER['REQUEST_METHOD'] . PHP_EOL . 'Target: ' . $this->here;
if (($this->request->is('post') || $this->request->is('put')) && !empty(Configure::read('MISP.log_paranoid_include_post_body'))) {
$payload = $this->request->data;
$payload = $this->request->input();
if (!empty($payload['_Token'])) {
unset($payload['_Token']);
}