]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids.cgi: Fix sorting the ignored hosts by id
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 11 Mar 2026 19:39:50 +0000 (20:39 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 12 Mar 2026 13:51:03 +0000 (13:51 +0000)
The sorting statement was entirely wrong, so the lists of ignored
hosts never got sorted in a proper way.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/ids.cgi

index 192c71ec6a4f827ad21a4a052a413866bd56e2e3..849c375289e9f2aa6e3df6f3cd009b4f6698f46d 100644 (file)
@@ -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];