mirror of https://github.com/MISP/MISP
Xen0ph0n's patch updated according to his recommendation
- replace '.' in domain names, ip-src and ip-dst with '[.]' instead of '-'pull/224/head
parent
c0a4953f81
commit
b1de06eb37
|
@ -1102,7 +1102,7 @@ class Event extends AppModel {
|
|||
$line = str_replace("@","[at]", $line);
|
||||
}
|
||||
elseif ('domain' == $attribute['type'] or 'ip-src' == $attribute['type'] or 'ip-dst' == $attribute['type']) {
|
||||
$line = str_replace(".","_", $line);
|
||||
$line = str_replace(".","[.]", $line);
|
||||
if ('other' == $attribute['type']) // append the 'other' attribute types to the bottom.
|
||||
$bodyTempOther .= $line;
|
||||
else $body .= $line;
|
||||
|
|
Loading…
Reference in New Issue