]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids-functions.pl: Quote array of subnets
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 20 May 2020 12:29:48 +0000 (12:29 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 20 May 2020 12:39:17 +0000 (12:39 +0000)
Reported-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/cfgroot/ids-functions.pl

index e33569849975ebf2363e9e736849ab90681ddd94..d45e1c70a68b5245fdbc2e09cb25c46a025bcbc3 100644 (file)
@@ -677,7 +677,7 @@ sub generate_home_net_file() {
        }
 
        # Format home net declaration.
-       my $line = "[" . join(',', @networks) . "]";
+       my $line = "\"[" . join(',', @networks) . "]\"";
 
        # Open file to store the addresses of the home net.
        open(FILE, ">$homenet_file") or die "Could not open $homenet_file. $!\n";