1
0
Fork 0
mirror of synced 2024-06-03 03:14:50 +12:00

Merge pull request #1398 from TorstenDittmann/fix-install-shell-args

fix(install): escape shell args
This commit is contained in:
Eldad A. Fux 2021-07-16 06:32:11 +03:00 committed by GitHub
commit 564324ff1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,7 +129,7 @@ $cli
$httpsPort = Console::confirm('Choose your server HTTPS port: (default: '.$defaultHTTPSPort.')');
$httpsPort = ($httpsPort) ? $httpsPort : $defaultHTTPSPort;
}
$input = [];
foreach($vars as $key => $var) {
@ -196,7 +196,7 @@ $cli
foreach ($input as $key => $value) {
if($value) {
$env .= $key.'='.$value.' ';
$env .= $key.'='.\escapeshellarg($value).' ';
}
}