Fixed detection of snort description if there is no CRLF and the
[people/pmueller/ipfire-2.x.git] / html / cgi-bin / ids.cgi
index 353643d..1d0f4ab 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 ($ruleline =~ /^\#/) {
+                                               if ($ruleline =~ /^\#/ and $ruleline !~ /^\#alert/) {
                                                        # Create tempruleline
                                                        my $tempruleline = $ruleline;