mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
Adding escapeshellarg on few more places in php code
This commit is contained in:
parent
b6cadcd992
commit
c377e19df8
4 changed files with 6 additions and 6 deletions
|
@ -7,14 +7,14 @@ include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
|||
|
||||
// Data & Render page
|
||||
if (empty($_GET['domain'])){
|
||||
exec (VESTA_CMD."v-list-dns-domains $user json", $output, $return_var);
|
||||
exec (VESTA_CMD."v-list-dns-domains ".escapeshellarg($user)." json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data, true);
|
||||
unset($output);
|
||||
|
||||
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 ".escapeshellarg($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