Fix COMMENT handling

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6302 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-05-09 15:59:57 +00:00
parent 590a096894
commit 732ea6950e

View File

@ -331,6 +331,7 @@ sub add_rule($$)
$rule .= " -m comment --comment \"$comment\"" if $comment; $rule .= " -m comment --comment \"$comment\"" if $comment;
if ( $chainref->{loopcount} || $chainref->{cmdcount} ) { if ( $chainref->{loopcount} || $chainref->{cmdcount} ) {
$rule =~ s/"/\\"/g;
add_command $chainref , qq(echo "-A $chainref->{name} $rule" >&3); add_command $chainref , qq(echo "-A $chainref->{name} $rule" >&3);
} else { } else {
push @{$chainref->{rules}}, $rule; push @{$chainref->{rules}}, $rule;