forked from extern/shorewall_code
Don't allow comments ending in '\'
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6308 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
1397af57fb
commit
8d3bd6e70a
@ -265,6 +265,7 @@ sub process_comment() {
|
||||
if ( $capabilities{COMMENTS} ) {
|
||||
( $comment = $line ) =~ s/^\s*COMMENT\s*//;
|
||||
fatal_error "COMMENT lines may not contain double quotes" if $comment =~ /"/;
|
||||
fatal_error "Invalid COMMENT line" if length $line >= 2 && substr( $line, -1) eq '\\';
|
||||
} else {
|
||||
warning_message "COMMENT ignored -- requires comment support in iptables/Netfilter";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user