Don't escape spaces in CONFIGARGS, use double backslash with all whitespace
(cherry picked from commit 9b0e85cbd5)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user