Merge pull request #71 from serghey-rodin/master

Adding escapeshellarg on few more places in php code
This commit is contained in:
myvesta 2020-06-23 19:11:19 +02:00 committed by GitHub
commit 850fa1a27b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View file

@ -356,7 +356,7 @@ if (!empty($_POST['save'])) {
// Change remote backup host type
if (empty($_SESSION['error_msg'])) {
if ((!empty($_POST['v_backup_host'])) && ($_POST['v_backup_type'] != $v_backup_type)) {
exec (VESTA_CMD."v-delete-backup-host ". $v_backup_type, $output, $return_var);
exec (VESTA_CMD."v-delete-backup-host " . escapeshellarg($v_backup_type), $output, $return_var);
unset($output);
$v_backup_host = escapeshellarg($_POST['v_backup_host']);