mirror of https://github.com/MISP/MISP
Merge pull request #8096 from righel/fix-issue-8093
fix: error later on when json enconding a binary repr ipv6pull/8111/head
commit
e01cd6e622
|
@ -180,7 +180,7 @@ class AuditLog extends AppModel
|
|||
if (!isset($auditLog['ip']) && $this->logClientIp) {
|
||||
$ipHeader = Configure::read('MISP.log_client_ip_header') ?: 'REMOTE_ADDR';
|
||||
if (isset($_SERVER[$ipHeader])) {
|
||||
$auditLog['ip'] = inet_pton($_SERVER[$ipHeader]); // convert to binary form
|
||||
$auditLog['ip'] = utf8_encode(inet_pton($_SERVER[$ipHeader])); // convert to binary form
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue