diff --git a/Classes/Utility/Wget/WgetCommand.php b/Classes/Utility/Wget/WgetCommand.php index 89eb920f..1a8a1e06 100644 --- a/Classes/Utility/Wget/WgetCommand.php +++ b/Classes/Utility/Wget/WgetCommand.php @@ -594,7 +594,8 @@ protected function buildCommand() } } - return sprintf('%s %s "%s"', $this->wgetBinaryPath, implode(' ', $arguments), $this->url); + return sprintf('%s %s "%s"', $this->wgetBinaryPath, implode(' ', array_map('escapeshellarg', $arguments)), escapeshellarg($this->url)); + }