mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -07:00
removed unnecessary single quotes for security reasons / thanks to Andrea Cardaci
This commit is contained in:
parent
c9bf443c6a
commit
b17b4b205d
15 changed files with 65 additions and 62 deletions
|
@ -22,7 +22,7 @@ if (empty($_GET['package'])) {
|
|||
|
||||
// List package
|
||||
$v_package = escapeshellarg($_GET['package']);
|
||||
exec (VESTA_CMD."v-list-user-package ".$v_package." 'json'", $output, $return_var);
|
||||
exec (VESTA_CMD."v-list-user-package ".$v_package." json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
unset($output);
|
||||
|
||||
|
@ -203,7 +203,7 @@ if (!empty($_POST['save'])) {
|
|||
fclose($fp);
|
||||
|
||||
// Save changes
|
||||
exec (VESTA_CMD."v-add-user-package ".$tmpdir." ".$v_package." 'yes'", $output, $return_var);
|
||||
exec (VESTA_CMD."v-add-user-package ".$tmpdir." ".$v_package." yes", $output, $return_var);
|
||||
check_return_code($return_var,$output);
|
||||
unset($output);
|
||||
|
||||
|
@ -212,7 +212,7 @@ if (!empty($_POST['save'])) {
|
|||
unset($output);
|
||||
|
||||
// Propogate new package
|
||||
exec (VESTA_CMD."v-update-user-package ".$v_package." 'json'", $output, $return_var);
|
||||
exec (VESTA_CMD."v-update-user-package ".$v_package." json", $output, $return_var);
|
||||
check_return_code($return_var,$output);
|
||||
unset($output);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue