The sorting statement was entirely wrong, so the lists of ignored
hosts never got sorted in a proper way.

Signed-off-by: Stefan Schantl <[email protected]>
---
 html/cgi-bin/ids.cgi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi
index 192c71ec6..849c37528 100644
--- a/html/cgi-bin/ids.cgi
+++ b/html/cgi-bin/ids.cgi
@@ -1506,7 +1506,7 @@ END
                        my $col = "";
 
                        # Loop through all entries of the hash.
-                       foreach my $key (sort { $ignored{$a}[0] <=> 
$ignored{$b}[0] } keys %ignored)  {
+                       foreach my $key (sort { $a <=> $b } keys %ignored)  {
                                # Assign data array positions to some nice 
variable names.
                                my $address = $ignored{$key}[0];
                                my $remark = $ignored{$key}[1];
-- 
2.47.3


Reply via email to