From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [PATCH] proxy.cgi: Remove option to show Squid's version entirely Date: Mon, 11 Oct 2021 12:20:15 +0100 Message-ID: <617846F7-7FF2-4005-B5A2-BFA7418F5002@ipfire.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6656541590090625252==" List-Id: --===============6656541590090625252== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, > On 10 Oct 2021, at 20:43, Peter M=C3=BCller wr= ote: >=20 > There is no sense to display this to anybody, and we do not reveal > version information anywhere else on purpose. The IT staff knows which > version of IPFire they are running (hopefully the latest), and it's > none of the rest of the world's business. LOL. Harsh, but true :) -Michael Acked-by: Michael Tremer >=20 > Fixes: #12665 (in some way) >=20 > Signed-off-by: Peter M=C3=BCller > --- > html/cgi-bin/proxy.cgi | 18 +++--------------- > 1 file changed, 3 insertions(+), 15 deletions(-) >=20 > diff --git a/html/cgi-bin/proxy.cgi b/html/cgi-bin/proxy.cgi > index 966593e4d..28321fa7f 100644 > --- a/html/cgi-bin/proxy.cgi > +++ b/html/cgi-bin/proxy.cgi > @@ -192,7 +192,6 @@ $proxysettings{'ADMIN_MAIL_ADDRESS'} =3D ''; > $proxysettings{'ADMIN_PASSWORD'} =3D ''; > $proxysettings{'ERR_LANGUAGE'} =3D 'en'; > $proxysettings{'ERR_DESIGN'} =3D 'ipfire'; > -$proxysettings{'SUPPRESS_VERSION'} =3D 'on'; > $proxysettings{'FORWARD_VIA'} =3D 'off'; > $proxysettings{'FORWARD_IPADDRESS'} =3D 'off'; > $proxysettings{'FORWARD_USERNAME'} =3D 'off'; > @@ -706,10 +705,6 @@ $checked{'TRANSPARENT_BLUE'}{'off'} =3D ''; > $checked{'TRANSPARENT_BLUE'}{'on'} =3D ''; > $checked{'TRANSPARENT_BLUE'}{$proxysettings{'TRANSPARENT_BLUE'}} =3D "check= ed=3D'checked'"; >=20 > -$checked{'SUPPRESS_VERSION'}{'off'} =3D ''; > -$checked{'SUPPRESS_VERSION'}{'on'} =3D ''; > -$checked{'SUPPRESS_VERSION'}{$proxysettings{'SUPPRESS_VERSION'}} =3D "chec= ked=3D'checked'"; > - > $checked{'FORWARD_IPADDRESS'}{'off'} =3D ''; > $checked{'FORWARD_IPADDRESS'}{'on'} =3D ''; > $checked{'FORWARD_IPADDRESS'}{$proxysettings{'FORWARD_IPADDRESS'}} =3D "che= cked=3D'checked'"; > @@ -962,20 +957,14 @@ print < > > > - $Lang::tr{'advproxy suppress version'}: > - > +   > +   > $Lang::tr{'advproxy error design'}: > > > - > - $Lang::tr{'advproxy squid version'}: > -  [ $squidversi= on[0] ] > -   > -   > - > >
> > @@ -3070,6 +3059,7 @@ sub writeconfig >=20 > shutdown_lifetime 5 seconds > icp_port 0 > +httpd_suppress_version_string on >=20 > END > ; > @@ -3868,8 +3858,6 @@ END >=20 > } >=20 > - if ($proxysettings{'SUPPRESS_VERSION'} eq 'on') { print FILE "httpd_suppr= ess_version_string on\n\n" } > - > if ((!-z $mimetypes) && ($proxysettings{'ENABLE_MIME_FILTER'} eq 'on')) { > if (!-z $acl_src_unrestricted_ip) { print FILE "http_reply_access allow = IPFire_unrestricted_ips\n"; } > if (!-z $acl_src_unrestricted_mac) { print FILE "http_reply_access allow = IPFire_unrestricted_mac\n"; } > --=20 > 2.26.2 --===============6656541590090625252==--