forked from extern/shorewall_code
Don't recognize an empty param list
This commit is contained in:
parent
b7a9a48508
commit
014d0eb607
@ -135,7 +135,7 @@ sub get_target_param( $ ) {
|
||||
my ( $target, $param ) = split '/', $_[0];
|
||||
|
||||
unless ( defined $param ) {
|
||||
( $target, $param ) = ( $1, $2 ) if $target =~ /^(.*?)[(](.*)[)]$/;
|
||||
( $target, $param ) = ( $1, $2 ) if $target =~ /^(.*?)[(](.+)[)]$/;
|
||||
}
|
||||
|
||||
( $target, $param );
|
||||
|
Loading…
Reference in New Issue
Block a user