From: Michael Tremer Date: Wed, 20 May 2020 12:29:48 +0000 (+0000) Subject: ids-functions.pl: Quote array of subnets X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7479c993490ea57fb35a80523577309e36b63f90;p=people%2Fstevee%2Fipfire-2.x.git ids-functions.pl: Quote array of subnets Reported-by: Daniel Weismüller Signed-off-by: Michael Tremer Signed-off-by: Arne Fitzenreiter --- diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index e335698499..d45e1c70a6 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -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";