mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
Revert "[SECURITY] Fix OS command injection."
This commit is contained in:
parent
9620bfbf35
commit
39e9b6397b
115 changed files with 1980 additions and 1340 deletions
|
@ -8,15 +8,14 @@ if (empty($argv[1])) {
|
|||
|
||||
$options = getopt("s:f:");
|
||||
|
||||
require_once(__DIR__.'/exec.php');
|
||||
|
||||
define('NO_AUTH_REQUIRED', true);
|
||||
define('NO_AUTH_REQUIRED',true);
|
||||
include("/usr/local/vesta/web/inc/main.php");
|
||||
|
||||
// Set system language
|
||||
v_exec('v-list-sys-config', ['json'], false, $output);
|
||||
$data = json_decode($output, true);
|
||||
if (!empty($data['config']['LANGUAGE'])) {
|
||||
exec (VESTA_CMD . "v-list-sys-config json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
if (!empty( $data['config']['LANGUAGE'])) {
|
||||
$_SESSION['language'] = $data['config']['LANGUAGE'];
|
||||
} else {
|
||||
$_SESSION['language'] = 'en';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue