man.cgi: Disable downloading man page archives due to abuse

Hat:	clusteradm
This commit is contained in:
Allan Jude 2019-05-31 15:11:48 +00:00
parent ec0670a3d2
commit fe4651c384
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=53087

View file

@ -1184,6 +1184,10 @@ sub get_the_sources {
# download a manual directory as gzip'd tar archive
sub download {
# 2019-05-31: allanjude: Disable downloading as it is being abused.
print qq{Status: 418 No Downloads For You\n\n};
exit(0);
$| = 1;
my $filename = $manpath;
$filename =~ s/\s+/_/;