[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#32815: marked as done (cgi-scripts' finger script gives incorrect output)



Your message dated Mon, 16 Aug 1999 22:09:19 +0200
with message-id <19990816220919.B10567@p200.hrnet.fr>
and subject line [maor-installer@debian.org: cgi-scripts_1.0.10_i386.changes INSTALLED]
has caused the attached bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I'm
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Ian Jackson
(administrator, Debian bugs database)

Received: (at submit) by bugs.debian.org; 3 Feb 1999 15:11:24 +0000
Received: (qmail 11567 invoked from network); 3 Feb 1999 15:11:23 -0000
Received: from violet.csi.cam.ac.uk (exim@131.111.8.58)
  by master.debian.org with SMTP; 3 Feb 1999 15:11:23 -0000
Received: from mjwpc.corpus.cam.ac.uk ([131.111.220.32] ident=root)
	by violet.csi.cam.ac.uk with esmtp (Exim 2.05 #3)
	id 1083xS-0005eg-00
	for submit@bugs.debian.org; Wed, 3 Feb 1999 15:11:14 +0000
Received: from localhost by mjwpc.corpus.cam.ac.uk
	 with smtp id m1083xY-000AALC
	(Debian Smail-3.2.0.101 1997-Dec-17 #2); Wed, 3 Feb 1999 15:11:20 +0000 (GMT)
Date: Wed, 3 Feb 1999 15:11:20 +0000 (GMT)
From: Mark Wharton <mjw41@cam.ac.uk>
Sender: mjw41@mjwpc.corpus.cam.ac.uk
Reply-To: Mark Wharton <mjw41@cam.ac.uk>
To: submit@bugs.debian.org
Subject: cgi-scripts' finger script gives incorrect output
Message-ID: <Pine.LNX.3.96.990203124437.867A-100000@mjwpc.corpus.cam.ac.uk>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


Package: cgi-scripts
Version: 1.0.9

The cgi finger script always returns MIME type text/html. The problem with
this is that (apart from the html being technically invalid - which is of
little or no importance) any <'s or >'s screw things up. The main problem
being that if you put your PGP key in your .plan or .project file (which
many people do) the identifiers go missing.

I enclose a modified script which is more friendly:

#!/bin/sh

FINGER=/usr/bin/finger

if [ -x $FINGER ]; then
	if [ $# = 0 ]; then
		cat << EOM
Content-type: text/html

<HTML><HEAD><TITLE>Finger Gateway</TITLE></HEAD><BODY>
<H1>Finger Gateway</H1>

<ISINDEX>

This is a gateway to "finger". Type a user@host combination in your browser's
search dialog.<P>
EOM
	else
		echo "Content-type: text/plain"
		echo
		$FINGER "$*"
	fi
else
	echo Cannot find finger on this system.
fi


--
M J Wharton. Corpus Christi College, Cambridge.
finger mjw41@mjwpc.corpus.cam.ac.uk for PGP key



Reply to: