Keep hyphens in @chain

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2016-04-03 16:30:31 -07:00
parent 4151f7c504
commit cb5a2519f3

View File

@ -3301,9 +3301,9 @@ sub push_action_params( $$$$$$ ) {
$actparams{caller} = $caller; $actparams{caller} = $caller;
$actparams{disposition} = '' if $chainref->{action}; $actparams{disposition} = '' if $chainref->{action};
# #
# The Shorewall variable '@chain' has the non-word charaters removed # The Shorewall variable '@chain' has offensive characters removed
# #
( $actparams{chain} = $chainref->{name} ) =~ s/[^\w]//g; ( $actparams{chain} = $chainref->{name} ) =~ s/[^\w-]//g;
\%oldparms; \%oldparms;
} }