mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-17 06:23:00 +02:00
Fixed detection of snort description if there is no CRLF and the
rules are misbuild. This fixes bug #0000669
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user