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

@ -3,12 +3,13 @@
error_reporting(NULL);
ob_start();
session_start();
include($_SERVER['DOCUMENT_ROOT'].'/inc/main.php');
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
if ($_SESSION['user'] == 'admin') {
v_exec('v-add-cron-vesta-autoupdate', [], false);
exec (VESTA_CMD."v-add-cron-vesta-autoupdate", $output, $return_var);
$_SESSION['error_msg'] = __('Autoupdate has been successfully enabled');
unset($output);
}
header('Location: /list/updates/');
header("Location: /list/updates/");
exit;