mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Merge pull request #1398 from TorstenDittmann/fix-install-shell-args
fix(install): escape shell args
This commit is contained in:
commit
564324ff1c
1 changed files with 2 additions and 2 deletions
|
|
@ -129,7 +129,7 @@ $cli
|
||||||
$httpsPort = Console::confirm('Choose your server HTTPS port: (default: '.$defaultHTTPSPort.')');
|
$httpsPort = Console::confirm('Choose your server HTTPS port: (default: '.$defaultHTTPSPort.')');
|
||||||
$httpsPort = ($httpsPort) ? $httpsPort : $defaultHTTPSPort;
|
$httpsPort = ($httpsPort) ? $httpsPort : $defaultHTTPSPort;
|
||||||
}
|
}
|
||||||
|
|
||||||
$input = [];
|
$input = [];
|
||||||
|
|
||||||
foreach($vars as $key => $var) {
|
foreach($vars as $key => $var) {
|
||||||
|
|
@ -196,7 +196,7 @@ $cli
|
||||||
|
|
||||||
foreach ($input as $key => $value) {
|
foreach ($input as $key => $value) {
|
||||||
if($value) {
|
if($value) {
|
||||||
$env .= $key.'='.$value.' ';
|
$env .= $key.'='.\escapeshellarg($value).' ';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue