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:
vgilc 2018-08-08 11:38:47 +02:00
commit 3333c33c0b
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ my @opts = @ARGV;
my $timeout = shift(@opts);
my $command;
foreach my $arg (@opts) {
$command .= quotemeta ($arg) . ' ';
$command .= $^O ne 'MSWin32' ? quotemeta ($arg) . ' ' : '"' . $command . '" ';
}
chomp ($command);
my $output = '';