ids-functions.pl: Quote array of subnets
Commit Message
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(-)
@@ -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";