We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5c9661 commit 9e9327dCopy full SHA for 9e9327d
1 file changed
web/bulk/firewall/banlist/index.php
@@ -19,13 +19,14 @@
19
exit;
20
}
21
22
-if (!empty($_POST['ipchain'])) {
+$ipchain = $_POST['ipchain'];
23
+/*if (!empty($_POST['ipchain'])) {
24
$ipchain = $_POST['ipchain'];
25
list($ip,$chain) = split(":",$ipchain);
26
$v_ip = escapeshellarg($ip);
27
$v_chain = escapeshellarg($chain);
28
-}
29
+}*/
30
31
$action = $_POST['action'];
32
@@ -36,6 +37,9 @@
36
37
38
39
foreach ($ipchain as $value) {
40
+ list($ip,$chain) = split(":",$value);
41
+ $v_ip = escapeshellarg($ip);
42
+ $v_chain = escapeshellarg($chain);
43
exec (VESTA_CMD.$cmd." ".$v_ip." ".$v_chain, $output, $return_var);
44
45
0 commit comments