]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
suricata: Support separating email addresses by semicolon
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 23 Feb 2026 11:28:12 +0000 (11:28 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 23 Feb 2026 11:28:12 +0000 (11:28 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/suricata/suricata-report-cron
html/cgi-bin/ids.cgi

index 3aa4cc8f89896df17f82755dc7cbde8b6a921509..335f315e1388e5f090c466eec1c40250cfa693c9 100644 (file)
@@ -39,7 +39,7 @@ send_report() {
                return 2
        fi
 
-       local IFS=','
+       local IFS=',;'
 
        # Append the email recipients
        for address in ${CONFIG[EMAIL_RECIPIENTS]}; do
index 9685b37d04eb26fad8757fdd01f086c11db7ee20..45923ce5cd1c3d99a384bc0c92518cf1d781fb7a 100644 (file)
@@ -2227,7 +2227,7 @@ sub _validate_mail_address($) {
 
        # Split the string of mail addresses into single pieces and
        # store them into the temporary array.
-       @temp = split(/\,/, $address);
+       @temp = split(/[,;]/, $address);
 
        # Loop through the array of mail addresses.
        foreach my $addr (@temp) {