forked from extern/shorewall_code
Outlaw backslash characters in config files
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6312 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
79972e028d
commit
5a52ee2f90
@ -264,7 +264,6 @@ my $chainseq;
|
||||
sub process_comment() {
|
||||
if ( $capabilities{COMMENTS} ) {
|
||||
( $comment = $line ) =~ s/^\s*COMMENT\s*//;
|
||||
fatal_error "Invalid COMMENT line" if length $line >= 2 && substr( $line, -1) eq '\\';
|
||||
} else {
|
||||
warning_message "COMMENT ignored -- requires comment support in iptables/Netfilter";
|
||||
}
|
||||
|
@ -310,6 +310,7 @@ sub split_line( $$$ ) {
|
||||
my ( $mincolumns, $maxcolumns, $description ) = @_;
|
||||
|
||||
fatal_error "Shorewall Configuration file entries may not contain double quotes" if $line =~ /"/;
|
||||
fatal_error "Shorewall Configuration file entries may not contain backslash characters" if $line =~ /\\/;
|
||||
|
||||
my @line = split /\s+/, $line;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user