forked from extern/shorewall_code
Fix "!" following log level
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6167 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
3156e2f3d2
commit
3c15fdabdd
@ -505,6 +505,7 @@ sub validate_level( $ ) {
|
|||||||
my $level = $_[0];
|
my $level = $_[0];
|
||||||
|
|
||||||
if ( defined $level && $level ne '' ) {
|
if ( defined $level && $level ne '' ) {
|
||||||
|
$level =~ s/!$//;
|
||||||
my $value = $validlevels{$level};
|
my $value = $validlevels{$level};
|
||||||
return $value if defined $value;
|
return $value if defined $value;
|
||||||
return $level if $level =~ /^[0-7]$/;
|
return $level if $level =~ /^[0-7]$/;
|
||||||
|
Loading…
Reference in New Issue
Block a user