From 732ea6950e1a0e0c299e5627a3acc071c57038d8 Mon Sep 17 00:00:00 2001 From: teastep Date: Wed, 9 May 2007 15:59:57 +0000 Subject: [PATCH] Fix COMMENT handling git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6302 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Chains.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Shorewall-perl/Shorewall/Chains.pm b/Shorewall-perl/Shorewall/Chains.pm index 9a780f341..b4bde3b41 100644 --- a/Shorewall-perl/Shorewall/Chains.pm +++ b/Shorewall-perl/Shorewall/Chains.pm @@ -331,6 +331,7 @@ sub add_rule($$) $rule .= " -m comment --comment \"$comment\"" if $comment; if ( $chainref->{loopcount} || $chainref->{cmdcount} ) { + $rule =~ s/"/\\"/g; add_command $chainref , qq(echo "-A $chainref->{name} $rule" >&3); } else { push @{$chainref->{rules}}, $rule;