|
3 | 3 | namespace Hestia\WebApp\Installers\Opencart; |
4 | 4 |
|
5 | 5 | use Hestia\WebApp\Installers\BaseSetup as BaseSetup; |
| 6 | +use function Hestiacp\quoteshellarg\quoteshellarg; |
6 | 7 |
|
7 | 8 | class OpencartSetup extends BaseSetup { |
8 | 9 | protected $appInfo = [ |
@@ -80,16 +81,18 @@ public function install(array $options = null): bool { |
80 | 81 | "v-run-cli-cmd", |
81 | 82 | [ |
82 | 83 | "/usr/bin/php" . $options["php_version"], |
83 | | - $this->getDocRoot("/install/cli_install.php"), |
| 84 | + quoteshellarg($this->getDocRoot("/install/cli_install.php")), |
84 | 85 | "install", |
85 | | - "--db_hostname " . $options["database_host"], |
86 | | - "--db_username " . $this->appcontext->user() . "_" . $options["database_user"], |
87 | | - "--db_password " . $options["database_password"], |
88 | | - "--db_database " . $this->appcontext->user() . "_" . $options["database_name"], |
89 | | - "--username " . $options["opencart_account_username"], |
90 | | - "--password " . $options["opencart_account_password"], |
91 | | - "--email " . $options["opencart_account_email"], |
92 | | - "--http_server " . $protocol . $this->domain . "/", |
| 86 | + "--db_hostname " . quoteshellarg($options["database_host"]), |
| 87 | + "--db_username " . |
| 88 | + quoteshellarg($this->appcontext->user() . "_" . $options["database_user"]), |
| 89 | + "--db_password " . quoteshellarg($options["database_password"]), |
| 90 | + "--db_database " . |
| 91 | + quoteshellarg($this->appcontext->user() . "_" . $options["database_name"]), |
| 92 | + "--username " . quoteshellarg($options["opencart_account_username"]), |
| 93 | + "--password " . quoteshellarg($options["opencart_account_password"]), |
| 94 | + "--email " . quoteshellarg($options["opencart_account_email"]), |
| 95 | + "--http_server " . quoteshellarg($protocol . $this->domain . "/"), |
93 | 96 | ], |
94 | 97 | $status, |
95 | 98 | ); |
|
0 commit comments