From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4clZWd44jLz32fl for ; Mon, 13 Oct 2025 11:15:09 +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) (Client CN "mail01.haj.ipfire.org", Issuer "R13" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4clZWZ1Vcfz2xMK for ; Mon, 13 Oct 2025 11:15:06 +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 4clZWY4rmCz2t; Mon, 13 Oct 2025 11:15:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1760354105; 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=+mpGC1XIUgPbLiQIseLzyV6N7I9lwex2ty9fS3OF1N0=; b=EHs1KqoSaIqurP4axXVfHTKwxXr13spCXyM89aFQdBvHQABl9L5dY4ZlYNtmttmJlkdqCU Q1d6mFMhIE9PgCPP9sLoLTyQq2UtdOSf4xi0jYoN2125l09RK709Pli39qvcMGhwm7rLzm AuPusQkFkAJ0j/l5uMBNnonHdGN/XhIv2/CZBYSptHuMizDImn4fDgA6qp5rp1x/YYJs9c PYpnF1VgMlEInQhUY6WMCgn7GEo8pfZKCtd0tEXgKZaviQPA4dajaXuPK+8Vtk8hDtdBRy 0OzVr5+pIoQ2IPrfLW6SUziwoePredWjdoMhiJJCFV9u/d2dN8Q/VDMgRqfNNw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1760354105; 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=+mpGC1XIUgPbLiQIseLzyV6N7I9lwex2ty9fS3OF1N0=; b=p5ZhxXeFV5aGV33kPjrPShoopfdGzC6YAdHX269IOBcPoYF4kJwzbHqFMVy7Q52c/TH00j o+xDwmuW+TjipeCg== From: Adolf Belka To: development@lists.ipfire.org Cc: Adolf Belka Subject: [PATCH 1/2] cgi-bin: Apply consistent disable status to debug modules Date: Mon, 13 Oct 2025 13:15:02 +0200 Message-ID: <20251013111503.31412-1-adolf.belka@ipfire.org> Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Signed-off-by: Adolf Belka --- html/cgi-bin/connections.cgi | 8 ++++---- html/cgi-bin/fireinfo.cgi | 8 ++++---- html/cgi-bin/fwhosts.cgi | 4 ++-- html/cgi-bin/iptables.cgi | 3 ++- html/cgi-bin/modem-status.cgi | 8 ++++---- html/cgi-bin/wirelessclient.cgi | 8 ++++---- 6 files changed, 20 insertions(+), 19 deletions(-) diff --git a/html/cgi-bin/connections.cgi b/html/cgi-bin/connections.cgi index 80cb4bb69..0c1282a92 100644 --- a/html/cgi-bin/connections.cgi +++ b/html/cgi-bin/connections.cgi @@ -2,7 +2,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2023 IPFire Team # +# Copyright (C) 2007-2025 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -22,9 +22,9 @@ use strict; use Switch; -# enable only the following on debugging purpose -use warnings; -use CGI::Carp 'fatalsToBrowser'; +# only enable the following for debugging purposes +#use warnings; +#use CGI::Carp 'fatalsToBrowser'; require '/var/ipfire/general-functions.pl'; require "${General::swroot}/lang.pl"; diff --git a/html/cgi-bin/fireinfo.cgi b/html/cgi-bin/fireinfo.cgi index 04e36faf4..33d2f8a88 100644 --- a/html/cgi-bin/fireinfo.cgi +++ b/html/cgi-bin/fireinfo.cgi @@ -2,7 +2,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2011 IPFire Team # +# Copyright (C) 2011-2025 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -21,9 +21,9 @@ use strict; -# enable only the following on debugging purpose -use warnings; -use CGI::Carp 'fatalsToBrowser'; +# only enable the following for debugging purposes +#use warnings; +#use CGI::Carp 'fatalsToBrowser'; require '/var/ipfire/general-functions.pl'; require "${General::swroot}/lang.pl"; diff --git a/html/cgi-bin/fwhosts.cgi b/html/cgi-bin/fwhosts.cgi index dca425b69..7820523c5 100644 --- a/html/cgi-bin/fwhosts.cgi +++ b/html/cgi-bin/fwhosts.cgi @@ -20,11 +20,11 @@ ############################################################################### use strict; -# enable only the following on debugging purpose +# only enable the following for debugging purposes #use warnings; +#use CGI::Carp 'fatalsToBrowser'; use Sort::Naturally; -use CGI::Carp 'fatalsToBrowser'; no warnings 'uninitialized'; require '/var/ipfire/general-functions.pl'; require '/var/ipfire/network-functions.pl'; diff --git a/html/cgi-bin/iptables.cgi b/html/cgi-bin/iptables.cgi index a27d6a920..de519a1de 100644 --- a/html/cgi-bin/iptables.cgi +++ b/html/cgi-bin/iptables.cgi @@ -2,7 +2,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2010 IPFire Team # +# Copyright (C) 2010-2025 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -23,6 +23,7 @@ require '/var/ipfire/general-functions.pl'; require "${General::swroot}/lang.pl"; require "${General::swroot}/header.pl"; +# only enable the following for debugging purposes #use warnings; #use CGI::Carp 'fatalsToBrowser'; diff --git a/html/cgi-bin/modem-status.cgi b/html/cgi-bin/modem-status.cgi index 2d33a3d5e..923780319 100644 --- a/html/cgi-bin/modem-status.cgi +++ b/html/cgi-bin/modem-status.cgi @@ -2,7 +2,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2014 IPFire Team # +# Copyright (C) 2007-2025 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -21,9 +21,9 @@ use strict; -# enable only the following on debugging purpose -use warnings; -use CGI::Carp 'fatalsToBrowser'; +# only enable the following for debugging purposes +#use warnings; +#use CGI::Carp 'fatalsToBrowser'; require '/var/ipfire/general-functions.pl'; require "${General::swroot}/lang.pl"; diff --git a/html/cgi-bin/wirelessclient.cgi b/html/cgi-bin/wirelessclient.cgi index 19c5bea50..6a2ee906a 100644 --- a/html/cgi-bin/wirelessclient.cgi +++ b/html/cgi-bin/wirelessclient.cgi @@ -2,7 +2,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2012 IPFire Team # +# Copyright (C) 2012-2025 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -24,9 +24,9 @@ use strict; -# enable only the following on debugging purpose -use warnings; -use CGI::Carp 'fatalsToBrowser'; +# only enable the following for debugging purposes +#use warnings; +#use CGI::Carp 'fatalsToBrowser'; require '/var/ipfire/general-functions.pl'; require "${General::swroot}/lang.pl"; -- 2.51.0