From patchwork Tue Jul 26 17:31:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 5765 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 (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4LskTx4p4Zz3x1v for ; Tue, 26 Jul 2022 17:31:17 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4LskTv4Qznz185; Tue, 26 Jul 2022 17:31:15 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4LskTv3kQ9z2ykv; Tue, 26 Jul 2022 17:31:15 +0000 (UTC) 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 (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4LskTs6kx2z2xK6 for ; Tue, 26 Jul 2022 17:31:13 +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 ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4LskTr6Q9jzDp; Tue, 26 Jul 2022 17:31:12 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1658856673; 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; bh=iH5Q3lECJ70jSulDjoXVa1hPbtWrnZTXo/zg/NdPQes=; b=dEloOdbb72n7VMJJEcTUwEGZlAiLN5N7V/7MVdeYoQpFcgHckyH/5SfId9vIFtyu4mXWsH 235LPEQ8cYn/MXDg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1658856673; 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; bh=iH5Q3lECJ70jSulDjoXVa1hPbtWrnZTXo/zg/NdPQes=; b=dh7HYwBRBczYgf+OogKp5Do/0KiVjcoG/+OwkeTEG8BNexcw2AWSvuj4XPNOIfbCgi6frb tTgd6YjhsOs/i+1HnmtflHheat2aLbM2QQKDooZYex4nxy24PVDvbU7FU7d9UXpdwcdT/u f6XZjapKtwlj2v/VO05gzpB+Y/u0UJxoCHsi3nT756UsUHIr72Q8xS/zIeu3OrjLtPN+ZN BQH+7ARqwmZpmV92MGHySTTOPEVoIALAy/kJBiDVcmC28LqvziRJ+7wYr1y4e3By/Q9Ho5 ZcQsISdmWqJJkLOnYxxJU6WKqe6m/mY6FlyWa862mZf/a4PfhtextlpAwBDBtQ== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] logs.cgi/ids.dat: Proper display logged events. Date: Tue, 26 Jul 2022 19:31:06 +0200 Message-Id: <20220726173106.2905-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Fix the regular expression to proper display the logged IDS events. Fixes #12899. Signed-off-by: Stefan Schantl --- html/cgi-bin/logs.cgi/ids.dat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/cgi-bin/logs.cgi/ids.dat b/html/cgi-bin/logs.cgi/ids.dat index 35c0dd1fd..7991e3936 100644 --- a/html/cgi-bin/logs.cgi/ids.dat +++ b/html/cgi-bin/logs.cgi/ids.dat @@ -414,7 +414,7 @@ sub processevent } ($title,$classification,$priority,$date,$time,$srcip,$srcport,$destip,$destport,$sid) = ("n/a","n/a","n/a","n/a","n/a","n/a","n/a","n/a","n/a", "n/a"); @refs = (); - $_ =~ m/:([0-9]{1,5})\] (.*) \[\*\*\]/; + $_ =~ m/:([0-9]{1,10})\] (.*) \[\*\*\]/; $title = &Header::cleanhtml($2,"y"); } if ($_ =~ m/Classification: (.*)\] \[Priority: (\d)\]/) {