Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
TASK: escape shell args in wget
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Keuerleber authored and kabarakh committed Dec 9, 2020
1 parent 0faee7d commit 181d92a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/Utility/Wget/WgetCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));

}


Expand Down

0 comments on commit 181d92a

Please sign in to comment.