mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
removing single quote from escapeshellarg calls
This commit is contained in:
parent
c28c5d29a3
commit
ab95d5d88d
3 changed files with 6 additions and 6 deletions
|
@ -209,7 +209,7 @@ if (!empty($_POST['save'])) {
|
|||
// Update mysql pasword
|
||||
if (empty($_SESSION['error_msg'])) {
|
||||
if (!empty($_POST['v_mysql_password'])) {
|
||||
exec (VESTA_CMD."v-change-database-host-password mysql localhost root '".escapeshellarg($_POST['v_mysql_password'])."'", $output, $return_var);
|
||||
exec (VESTA_CMD."v-change-database-host-password mysql localhost root ".escapeshellarg($_POST['v_mysql_password']), $output, $return_var);
|
||||
check_return_code($return_var,$output);
|
||||
unset($output);
|
||||
$v_db_adv = 'yes';
|
||||
|
@ -260,7 +260,7 @@ if (!empty($_POST['save'])) {
|
|||
// Update webmail url
|
||||
if (empty($_SESSION['error_msg'])) {
|
||||
if ($_POST['v_mail_url'] != $_SESSION['MAIL_URL']) {
|
||||
exec (VESTA_CMD."v-change-sys-config-value MAIL_URL '".escapeshellarg($_POST['v_mail_url'])."'", $output, $return_var);
|
||||
exec (VESTA_CMD."v-change-sys-config-value MAIL_URL ".escapeshellarg($_POST['v_mail_url']), $output, $return_var);
|
||||
check_return_code($return_var,$output);
|
||||
unset($output);
|
||||
$v_mail_adv = 'yes';
|
||||
|
@ -270,7 +270,7 @@ if (!empty($_POST['save'])) {
|
|||
// Update phpMyAdmin url
|
||||
if (empty($_SESSION['error_msg'])) {
|
||||
if ($_POST['v_mysql_url'] != $_SESSION['DB_PMA_URL']) {
|
||||
exec (VESTA_CMD."v-change-sys-config-value DB_PMA_URL '".escapeshellarg($_POST['v_mysql_url'])."'", $output, $return_var);
|
||||
exec (VESTA_CMD."v-change-sys-config-value DB_PMA_URL ".escapeshellarg($_POST['v_mysql_url']), $output, $return_var);
|
||||
check_return_code($return_var,$output);
|
||||
unset($output);
|
||||
$v_db_adv = 'yes';
|
||||
|
@ -280,7 +280,7 @@ if (!empty($_POST['save'])) {
|
|||
// Update phpPgAdmin url
|
||||
if (empty($_SESSION['error_msg'])) {
|
||||
if ($_POST['v_pgsql_url'] != $_SESSION['DB_PGA_URL']) {
|
||||
exec (VESTA_CMD."v-change-sys-config-value DB_PGA_URL '".escapeshellarg($_POST['v_pgsql_url'])."'", $output, $return_var);
|
||||
exec (VESTA_CMD."v-change-sys-config-value DB_PGA_URL ".escapeshellarg($_POST['v_pgsql_url']), $output, $return_var);
|
||||
check_return_code($return_var,$output);
|
||||
unset($output);
|
||||
$v_db_adv = 'yes';
|
||||
|
|
|
@ -14,7 +14,7 @@ if (empty($_GET['domain'])){
|
|||
|
||||
render_page($user, $TAB, 'list_dns');
|
||||
} else {
|
||||
exec (VESTA_CMD."v-list-dns-records '".$user."' '".escapeshellarg($_GET['domain'])."' 'json'", $output, $return_var);
|
||||
exec (VESTA_CMD."v-list-dns-records ".$user." ".escapeshellarg($_GET['domain'])." json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data, true);
|
||||
unset($output);
|
||||
|
|
|
@ -14,7 +14,7 @@ if (empty($_GET['domain'])){
|
|||
|
||||
render_page($user, $TAB, 'list_mail');
|
||||
} else {
|
||||
exec (VESTA_CMD."v-list-mail-accounts '".$user."' '".escapeshellarg($_GET['domain'])."' json", $output, $return_var);
|
||||
exec (VESTA_CMD."v-list-mail-accounts ".$user." ".escapeshellarg($_GET['domain'])." json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data, true);
|
||||
unset($output);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue