Always quote the LEVEL and DEFAULT settings when updating

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-03-13 09:51:58 -07:00
parent b049d1805d
commit da363880a9
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -5368,8 +5368,12 @@ sub update_config_file( $ ) {
}
}
$val = conditional_quote $val;
if ( supplied $val ) {
#
# Log LEVEL and DEFAULT settings often contain parens
#
$val = ($var =~ /(?:LEVEL|DEFAULT)$/) ? qq("$val") : conditional_quote $val;
}
$_ = "$var=$val\n";
}