Merge branch 'fix/pandora_exec_quotemeta' into 'develop'
Do not use quotemeta to escape arguments on win32. See merge request artica/pandorafms!1668
This commit is contained in:
commit
3333c33c0b
|
@ -36,7 +36,7 @@ my @opts = @ARGV;
|
||||||
my $timeout = shift(@opts);
|
my $timeout = shift(@opts);
|
||||||
my $command;
|
my $command;
|
||||||
foreach my $arg (@opts) {
|
foreach my $arg (@opts) {
|
||||||
$command .= quotemeta ($arg) . ' ';
|
$command .= $^O ne 'MSWin32' ? quotemeta ($arg) . ' ' : '"' . $command . '" ';
|
||||||
}
|
}
|
||||||
chomp ($command);
|
chomp ($command);
|
||||||
my $output = '';
|
my $output = '';
|
||||||
|
|
Loading…
Reference in New Issue