forked from extern/shorewall_code
Fix split_list()
This commit is contained in:
parent
1060b201dd
commit
f2ab068044
@ -1475,11 +1475,12 @@ sub split_list1( $$ ) {
|
|||||||
|
|
||||||
if ( ( $count = tr/(/(/ ) > 0 ) {
|
if ( ( $count = tr/(/(/ ) > 0 ) {
|
||||||
fatal_error "Invalid $type list ($list)" if $element || $count > 1;
|
fatal_error "Invalid $type list ($list)" if $element || $count > 1;
|
||||||
|
s/\(//;
|
||||||
if ( ( $count = tr/)/)/ ) > 0 ) {
|
if ( ( $count = tr/)/)/ ) > 0 ) {
|
||||||
fatal_error "Invalid $type list ($list)" if $count > 1;
|
fatal_error "Invalid $type list ($list)" if $count > 1;
|
||||||
|
s/\)//;
|
||||||
push @list2 , $_;
|
push @list2 , $_;
|
||||||
} else {
|
} else {
|
||||||
s/\(//;
|
|
||||||
$element = $_;
|
$element = $_;
|
||||||
}
|
}
|
||||||
} elsif ( ( $count = tr/)/)/ ) > 0 ) {
|
} elsif ( ( $count = tr/)/)/ ) > 0 ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user