Commit 9b0e85cb authored by Ondřej Surý's avatar Ondřej Surý

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

parent e3076c4c
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment