From 74240610c5c6a1fe95ab517c3790d21edceb79e1 Mon Sep 17 00:00:00 2001 From: Seth Hall Date: Fri, 21 Oct 2011 22:41:43 -0400 Subject: [PATCH] Fixed a problem with sending notice emails I introduced earlier. --- scripts/base/frameworks/notice/main.bro | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/base/frameworks/notice/main.bro b/scripts/base/frameworks/notice/main.bro index 98a7f44ef4..1741724090 100644 --- a/scripts/base/frameworks/notice/main.bro +++ b/scripts/base/frameworks/notice/main.bro @@ -359,11 +359,11 @@ function email_notice_to(n: Notice::Info, dest: string, extend: bool) # Add information about the connection if it exists. if ( n?$id ) - email_text = cat(email_text, "Connection: ", - n$id$orig_h, ":", n$id$orig_p, " -> ", - n$id$resp_h, ":", n$id$resp_p, "\n"); + email_text = string_cat(email_text, "Connection: ", + fmt("%s", n$id$orig_h), ":", fmt("%d", n$id$orig_p), " -> ", + fmt("%s", n$id$resp_h), ":", fmt("%d", n$id$resp_p), "\n"); else if ( n?$src ) - email_text = cat(email_text, "Address: ", n$src, "\n"); + email_text = string_cat(email_text, "Address: ", fmt("%s", n$src), "\n"); # Add the extended information if it's requested. if ( extend )