From a3f194e8909f32ec8e0c68ee8c4d0f2da87bca8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= Date: Sun, 29 Apr 2018 23:52:40 +0200 Subject: [PATCH] [Web] Sort fail2ban black and whitelist --- data/web/inc/functions.fail2ban.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/web/inc/functions.fail2ban.inc.php b/data/web/inc/functions.fail2ban.inc.php index fdbb5b7c..75f78e72 100644 --- a/data/web/inc/functions.fail2ban.inc.php +++ b/data/web/inc/functions.fail2ban.inc.php @@ -16,6 +16,7 @@ function fail2ban($_action, $_data = null) { $tmp_wl_data[] = $key; } if (isset($tmp_wl_data)) { + sort($tmp_wl_data); $f2b_options['whitelist'] = implode(PHP_EOL, $tmp_wl_data); } else { @@ -31,6 +32,7 @@ function fail2ban($_action, $_data = null) { $tmp_bl_data[] = $key; } if (isset($tmp_bl_data)) { + sort($tmp_bl_data); $f2b_options['blacklist'] = implode(PHP_EOL, $tmp_bl_data); } else {