]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Fixed detection of snort description if there is no CRLF and the
authorChristian Schmidt <christian.schmidt@ipfire.org>
Fri, 25 Jun 2010 16:37:00 +0000 (18:37 +0200)
committerChristian Schmidt <christian.schmidt@ipfire.org>
Fri, 25 Jun 2010 16:37:00 +0000 (18:37 +0200)
rules are misbuild. This fixes bug #0000669

html/cgi-bin/ids.cgi

index 353643d736a14332e4f5a03e7ed4e9dc9fb50697..1d0f4abc81e0a56686deacb7c57c6feeed5008b5 100644 (file)
@@ -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 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;
 
                                                        # Create tempruleline
                                                        my $tempruleline = $ruleline;