mirror of https://github.com/MISP/MISP
fix: [logging] paranoid log entry not logging request body via the API
parent
6cef8bb5c3
commit
213cd99ebf
|
@ -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']);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue