From: Peter Müller Date: Sun, 10 Oct 2021 19:43:14 +0000 (+0200) Subject: proxy.cgi: Remove option to show Squid's version entirely X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=13aeb192178b57bc1b14abc514a022ca89cc87bd;p=people%2Fms%2Fipfire-2.x.git proxy.cgi: Remove option to show Squid's version entirely 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. Fixes: #12665 (in some way) Signed-off-by: Peter Müller Acked-by: Michael Tremer Signed-off-by: Arne Fitzenreiter --- diff --git a/html/cgi-bin/proxy.cgi b/html/cgi-bin/proxy.cgi index 202a8f3bc5..8faf4490ca 100644 --- a/html/cgi-bin/proxy.cgi +++ b/html/cgi-bin/proxy.cgi @@ -193,7 +193,6 @@ $proxysettings{'ADMIN_MAIL_ADDRESS'} = ''; $proxysettings{'ADMIN_PASSWORD'} = ''; $proxysettings{'ERR_LANGUAGE'} = 'en'; $proxysettings{'ERR_DESIGN'} = 'ipfire'; -$proxysettings{'SUPPRESS_VERSION'} = 'on'; $proxysettings{'FORWARD_VIA'} = 'off'; $proxysettings{'FORWARD_IPADDRESS'} = 'off'; $proxysettings{'FORWARD_USERNAME'} = 'off'; @@ -725,10 +724,6 @@ $checked{'TRANSPARENT_BLUE'}{'off'} = ''; $checked{'TRANSPARENT_BLUE'}{'on'} = ''; $checked{'TRANSPARENT_BLUE'}{$proxysettings{'TRANSPARENT_BLUE'}} = "checked='checked'"; -$checked{'SUPPRESS_VERSION'}{'off'} = ''; -$checked{'SUPPRESS_VERSION'}{'on'} = ''; -$checked{'SUPPRESS_VERSION'}{$proxysettings{'SUPPRESS_VERSION'}} = "checked='checked'"; - $checked{'FORWARD_IPADDRESS'}{'off'} = ''; $checked{'FORWARD_IPADDRESS'}{'on'} = ''; $checked{'FORWARD_IPADDRESS'}{$proxysettings{'FORWARD_IPADDRESS'}} = "checked='checked'"; @@ -989,20 +984,14 @@ print < - $Lang::tr{'advproxy suppress version'}: - +   +   $Lang::tr{'advproxy error design'}: - - $Lang::tr{'advproxy squid version'}: -  [ $squidversion[0] ] -   -   -
@@ -3115,6 +3104,7 @@ sub writeconfig shutdown_lifetime 5 seconds icp_port 0 +httpd_suppress_version_string on END ; @@ -3966,8 +3956,6 @@ END } - if ($proxysettings{'SUPPRESS_VERSION'} eq 'on') { print FILE "httpd_suppress_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"; }