mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-15 04:04:10 +01:00
Quote param values that include shell metacharacters
This commit is contained in:
parent
e653a34865
commit
755c3cfd80
@ -3041,7 +3041,7 @@ sub export_params() {
|
||||
|
||||
emit "#\n# From the params file\n#" unless $count++;
|
||||
|
||||
if ( $value =~ /\s/ ) {
|
||||
if ( $value =~ /[\s()[]/ ) {
|
||||
emit "$param='$value'";
|
||||
} else {
|
||||
emit "$param=$value";
|
||||
|
Loading…
Reference in New Issue
Block a user