Revert "[SECURITY] Fix OS command injection."

This commit is contained in:
Serghey Rodin 2015-12-11 21:14:49 +02:00
commit 39e9b6397b
115 changed files with 1980 additions and 1340 deletions

View file

@ -13,11 +13,12 @@ top_panel($user,$TAB);
// Data
if ($_SESSION['user'] == 'admin') {
v_exec('v-list-sys-vesta-updates', ['json'], false, $output);
$data = json_decode($output, true);
v_exec('v-list-sys-vesta-autoupdate', ['plain'], false, $output);
$autoupdate = strtok($output, "\n");
exec (VESTA_CMD."v-list-sys-vesta-updates json", $output, $return_var);
$data = json_decode(implode('', $output), true);
unset($output);
exec (VESTA_CMD."v-list-sys-vesta-autoupdate plain", $output, $return_var);
$autoupdate = $output['0'];
unset($output);
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_updates.html');
}