Don't escape spaces in CONFIGARGS, use double backslash with all whitespace

This commit is contained in:
Ondřej Surý
2020-04-15 14:44:42 +02:00
parent e3076c4caa
commit 9b0e85cbd5

View File

@@ -640,8 +640,9 @@ getversion();
sub appargs {
my $arg = $_[0];
# escape backslashes, spaces and double quotes
$arg =~ s/([\\ "])/\\$1/g;
# escape backslashes and double quotes
$arg =~ s/([\\"])/\\$1/g;
$arg =~ s/([\s])/\\\\$1/g;
if (defined($configdefh{"CONFIGARGS"})) {
$configdefh{"CONFIGARGS"} .= " " . $arg;
} else {