diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index ad0cc999c..5d5cfdbb5 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -4654,7 +4654,7 @@ sub do_condition( $$ ) { require_capability 'CONDITION_MATCH', 'A non-empty SWITCH column', 's'; - $chain =~ s/[^\w-]//g; + $chain =~ s/[^\w-]//g; # $1 $2 - $3 while ( $condition =~ m( ^(.*?) @({)?0(?(2)}) (.*)$ )x ) { $condition = join( '', $1, $chain, $3 );