From patchwork Wed Mar 11 19:39:50 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 9559 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1 raw public key) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R12" (not verified)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4fWLkv4HSQz3wky for ; Wed, 11 Mar 2026 19:43:03 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [IPv6:2001:678:b28::201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail02.haj.ipfire.org", Issuer "E7" (not verified)) by mail01.ipfire.org (Postfix) with ESMTPS id 4fWLkv0knXz5lR for ; Wed, 11 Mar 2026 19:43:03 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4fWLkt6hsjz32Zf for ; Wed, 11 Mar 2026 19:43:02 +0000 (UTC) X-Original-To: development@lists.ipfire.org Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R12" (not verified)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4fWLkr2s4pz2xSm for ; Wed, 11 Mar 2026 19:43:00 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4fWLkq29xmz1y9; Wed, 11 Mar 2026 19:42:59 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1773258179; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=G0uf+N9qSh/CYOCTgAqkb7TMo5CwJQz2okJYg+6cOxI=; b=zYqdrWIZldV+rM1eJOVkU1QHLjzwpH49iBWudhBR8ZTjNUyfj1WAeK2SImISQMGqFJEP5U R3bgf01u2F8CIGDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1773258179; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=G0uf+N9qSh/CYOCTgAqkb7TMo5CwJQz2okJYg+6cOxI=; b=PkD4YVG4jPQW98YKmuu2m3bbrY4ludfzAQ1PlY1NubNaXTmeZU83UPpuetrTGVIMBlOt8R Q216WJOHTWdFUW8hWUV27jPH8Hl0A+WCCrpRcTu1t07WYRchrf4e1+j21Z4CW/80H50NXn lqnOASXOr4V4cPCN5ggEWouB/IUd1XD9DrXM4QNAwAgsg8QC5hRoXhwuxLsDx5qjIqXjFe /rPP7fN3KpSko9BU9nza05bSt/wKaS7qxzThFaQp6oErmwSPSm1H3aUwtSx0WVTYxNLHe3 UBQjpt65nrlVG8OhVOv82EXCLvz5ojreAw95/28ndqdwtsQ/kfwhJ9Q1G8bffA== From: Stefan Schantl To: development@lists.ipfire.org Cc: Stefan Schantl Subject: [PATCH] ids.cgi: Fix sorting the ignored hosts by id Date: Wed, 11 Mar 2026 20:39:50 +0100 Message-ID: <20260311193950.6283-1-stefan.schantl@ipfire.org> In-Reply-To: <5c23a258-3e27-4d84-a55d-4b24ff73770c@ipfire.org> References: <5c23a258-3e27-4d84-a55d-4b24ff73770c@ipfire.org> Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 The sorting statement was entirely wrong, so the lists of ignored hosts never got sorted in a proper way. Signed-off-by: Stefan Schantl --- 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];