Inhibit arbitrary command execution in Docker post arguments

This commit is contained in:
bergware
2018-03-16 20:07:09 +01:00
parent ac8a5b5984
commit 99b76766a0
@@ -433,7 +433,7 @@ function xmlToCommand($xml, $create_paths=false) {
implode(' --device=', $Devices),
$xml['ExtraParams'],
escapeshellarg($xml['Repository']),
$xml['PostArgs']);
escapeshellarg($xml['PostArgs']));
return [preg_replace('/\s+/', ' ', $cmd), $xml['Name'], $xml['Repository']];
}