From d51ca478bd43d36f0e586636dd4c564a5809d0b5 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 21 Jun 2011 11:45:32 -0700 Subject: [PATCH] Reverse one hunk from empty-parameter fix Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Rules.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index 3dc3918a3..9e6ef08e1 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -178,8 +178,7 @@ sub get_target_param( $ ) { my ( $target, $param ) = split '/', $_[0]; unless ( defined $param ) { - $target =~ s/\(\)$//; - ( $target, $param ) = ( $1, $2 ) if $target =~ /^(.*?)[(](.+)[)]$/; + ( $target, $param ) = ( $1, $2 ) if $target =~ /^(.*?)[(](.*)[)]$/; } ( $target, $param );