forked from extern/shorewall_code
Always quote the LEVEL and DEFAULT settings when updating
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
b049d1805d
commit
da363880a9
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user