Skip to content

Commit e603a52

Browse files
committed
Fix incorrect quoting
Additonal to hestiacp@5dbc398
1 parent b96c780 commit e603a52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web/list/dns/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
// Data & Render page
99
if (empty($_GET['domain'])){
10-
exec (HESTIA_CMD."v-list-dns-domains $user json", $output, $return_var);
10+
exec (HESTIA_CMD."v-list-dns-domains ".escapeshellarg($user)." 'json'", $output, $return_var);
1111
$data = json_decode(implode('', $output), true);
1212
$data = array_reverse($data, true);
1313
unset($output);

web/list/web/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
77

88
// Data
9-
exec (HESTIA_CMD."v-list-web-domains $user json", $output, $return_var);
9+
exec (HESTIA_CMD."v-list-web-domains ".escapeshellarg($user)." 'json'", $output, $return_var);
1010
$data = json_decode(implode('', $output), true);
1111
$data = array_reverse($data,true);
1212
$ips = json_decode(shell_exec(HESTIA_CMD.'v-list-sys-ips json'), true);

0 commit comments

Comments
 (0)