From: Christian Schmidt Date: Fri, 25 Jun 2010 16:37:00 +0000 (+0200) Subject: Fixed detection of snort description if there is no CRLF and the X-Git-Tag: v2.9-beta1~180 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=611965065294209d2e418c221e9dfe7042775fad Fixed detection of snort description if there is no CRLF and the rules are misbuild. This fixes bug #0000669 --- 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;