From c0836b8df2aaeea2633ab85ed7fa327c88d97763 Mon Sep 17 00:00:00 2001 From: teastep Date: Mon, 17 Mar 2008 15:44:15 +0000 Subject: [PATCH] Fix for new Macro syntax when macro name contains non-word characters git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8299 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Actions.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall-perl/Shorewall/Actions.pm b/Shorewall-perl/Shorewall/Actions.pm index 4ba894862..94999e60d 100644 --- a/Shorewall-perl/Shorewall/Actions.pm +++ b/Shorewall-perl/Shorewall/Actions.pm @@ -232,7 +232,7 @@ sub get_target_param( $ ) { my ( $target, $param ) = split '/', $_[0]; unless ( defined $param ) { - ( $target, $param ) = ( $1, $2 ) if $target =~ /^(\w+)[(](.*)[)]$/; + ( $target, $param ) = ( $1, $2 ) if $target =~ /^(.*?)[(](.*)[)]$/; } ( $target, $param );