]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - config/cfgroot/ids-functions.pl
ids-functions.pl: Quote array of subnets
[ipfire-2.x.git] / 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";