From 611965065294209d2e418c221e9dfe7042775fad Mon Sep 17 00:00:00 2001 From: Christian Schmidt Date: Fri, 25 Jun 2010 18:37:00 +0200 Subject: [PATCH] Fixed detection of snort description if there is no CRLF and the rules are misbuild. This fixes bug #0000669 --- html/cgi-bin/ids.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index 353643d736..1d0f4abc81 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -143,7 +143,7 @@ if (-e "/etc/snort/snort.conf") { # If see more than one dashed line, (start to) create rule file description if ($dashlinecnt > 1) { # Check for a line starting with a # - if ($ruleline =~ /^\#/) { + if ($ruleline =~ /^\#/ and $ruleline !~ /^\#alert/) { # Create tempruleline my $tempruleline = $ruleline; -- 2.39.2