forked from extern/shorewall_code
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:
parent
590a096894
commit
732ea6950e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user