Skip to content

Commit 9e9327d

Browse files
committed
bulk fail2ban
1 parent a5c9661 commit 9e9327d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

web/bulk/firewall/banlist/index.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@
1919
exit;
2020
}
2121

22-
if (!empty($_POST['ipchain'])) {
22+
$ipchain = $_POST['ipchain'];
23+
/*if (!empty($_POST['ipchain'])) {
2324
$ipchain = $_POST['ipchain'];
2425
list($ip,$chain) = split(":",$ipchain);
2526
$v_ip = escapeshellarg($ip);
2627
$v_chain = escapeshellarg($chain);
2728
28-
}
29+
}*/
2930

3031
$action = $_POST['action'];
3132

@@ -36,6 +37,9 @@
3637
}
3738

3839
foreach ($ipchain as $value) {
40+
list($ip,$chain) = split(":",$value);
41+
$v_ip = escapeshellarg($ip);
42+
$v_chain = escapeshellarg($chain);
3943
exec (VESTA_CMD.$cmd." ".$v_ip." ".$v_chain, $output, $return_var);
4044
}
4145

0 commit comments

Comments
 (0)