Fix NFLOG/ULOG fiasco

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7843 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-12-07 05:36:51 +00:00
parent 1d534e1d9c
commit f4183c8d5b

View File

@ -1309,7 +1309,8 @@ sub level_error( $ ) {
}
sub validate_level( $ ) {
my $level = uc $_[0];
my $rawlevel = $_[0];
my $level = uc $rawlevel;
if ( defined $level && $level ne '' ) {
$level =~ s/!$//;
@ -1338,10 +1339,10 @@ sub validate_level( $ ) {
}
if ( $level =~ /^NFLOG --/ or $level =~ /^ULOG --/ ) {
return $level;
return $rawlevel;
}
level_error( $level );
level_error( $rawlevel );
}
'';