ids-functions.pl: Quote array of subnets

Message ID 20200520122948.11071-1-michael.tremer@ipfire.org
State Accepted
Commit 7479c993490ea57fb35a80523577309e36b63f90
Headers
Series ids-functions.pl: Quote array of subnets |

Commit Message

Michael Tremer May 20, 2020, 12:29 p.m. UTC
  Reported-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 config/cfgroot/ids-functions.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl
index e33569849..d45e1c70a 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";