forked from extern/shorewall_code
Improve MARK column validation
This commit is contained in:
parent
9173b22b58
commit
974a542585
@ -2394,8 +2394,15 @@ sub verify_small_mark( $ ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub validate_mark( $ ) {
|
sub validate_mark( $ ) {
|
||||||
for ( split '/', $_[0] ) {
|
my $mark = shift;
|
||||||
verify_mark $_;
|
fatal_error "Missing MARK" unless defined $mark && $mark ne '';
|
||||||
|
|
||||||
|
if ( $mark =~ '/' ) {
|
||||||
|
my @marks = split '/', $mark;
|
||||||
|
fatal_error "Invalid MARK ($mark)" unless @marks == 2;
|
||||||
|
verify_mark $_ for @marks;
|
||||||
|
} else {
|
||||||
|
verify_mark $mark;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user