forked from extern/shorewall_code
Fix '\!' handling in validate_level()
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
afaf0d9de8
commit
d096b9399a
@ -2143,13 +2143,12 @@ sub validate_level( $ ) {
|
||||
my $level = uc $rawlevel;
|
||||
|
||||
if ( supplied ( $level ) ) {
|
||||
$level =~ s/!$//;
|
||||
my $value = $level;
|
||||
my $qualifier;
|
||||
|
||||
$value =~ s/^!//;
|
||||
|
||||
unless ( $value =~ /^[0-7]$/ ) {
|
||||
level_error( $level ) unless $level =~ /^!?([A-Za-z0-7]+)(.*)$/ && defined( $value = $validlevels{$1} );
|
||||
level_error( $level ) unless $level =~ /^([A-Za-z0-7]+)(.*)$/ && defined( $value = $validlevels{$1} );
|
||||
$qualifier = $2;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user