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

(cherry picked from commit 9b0e85cbd5)
This commit is contained in:
Ondřej Surý
2020-04-16 08:12:39 +02:00
parent 5fd1df8cfa
commit e95433575d
+3 -2
View File
@@ -816,8 +816,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 {