Xen0ph0n's patch updated according to his recommendation

- replace '.' in domain names, ip-src and ip-dst with '[.]' instead of '-'
pull/224/head
iglocska 2014-02-25 15:31:15 +01:00
parent c0a4953f81
commit b1de06eb37
1 changed files with 1 additions and 1 deletions

View File

@ -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;