[18734] in Athena Bugs
Re: Emilio C Silva: Improvement on /usr/athena/bin/htmlview.
daemon@ATHENA.MIT.EDU (t. belton)
Wed Jan 31 16:29:43 2001
Date: Wed, 31 Jan 2001 16:29:37 -0500 (EST)
From: "t. belton" <tbelton@MIT.EDU>
To: Greg Hudson <ghudson@mit.edu>
cc: <bugs@mit.edu>
In-Reply-To: <200009151656.MAA01316@egyptian-gods.MIT.EDU>
Message-ID: <Pine.GSO.4.30L.0101311625140.13463-100000@iphigenia.mit.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
This one somehow slipped through the cracks; I found it whilst sorting out
infoagents mail and have changed the script. It'll propagate tomorrow.
The fix worries me a little bit ... there may conceivably be some URLS
which go to asp's or databased-backed pages that literally do require
commas and not escaped %2C's to work. But I believe that in this case
risking the 404 is better than having an abject failure.
-Todd
On Fri, 15 Sep 2000, Greg Hudson wrote:
>
> ------- Forwarded Message
>
> Return-Path: <emilio@MIT.EDU>
> Received: from grand-central-station.MIT.EDU by po12.mit.edu (8.9.2/4.7) id LAA25205; Fri, 15 Sep 2000 11:29:21 -0400 (EDT)
> Received: from melbourne-city-street.MIT.EDU (MELBOURNE-CITY-STREET.MIT.EDU [18.69.0.45])
> by grand-central-station.MIT.EDU (8.9.2/8.9.2) with ESMTP id LAA06288
> for <ghudson@mit.edu>; Fri, 15 Sep 2000 11:29:20 -0400 (EDT)
> Received: from m66-080-18.mit.edu (M66-080-18.MIT.EDU [18.63.1.18])
> by melbourne-city-street.MIT.EDU (8.9.3/8.9.2) with ESMTP id LAA05215
> for <ghudson@mit.edu>; Fri, 15 Sep 2000 11:29:20 -0400 (EDT)
> Received: from localhost (emilio@localhost) by m66-080-18.mit.edu (8.9.3) with ESMTP
> id LAA18115; Fri, 15 Sep 2000 11:29:20 -0400 (EDT)
> Date: Fri, 15 Sep 2000 11:29:20 -0400 (EDT)
> From: Emilio C Silva <emilio@MIT.EDU>
> To: ghudson@mit.edu
> Subject: Improvement on /usr/athena/bin/htmlview.
> Message-ID: <Pine.GSO.4.21L.0009151122290.17580-100000@m66-080-18.mit.edu>
> MIME-Version: 1.0
> Content-Type: TEXT/PLAIN; charset=US-ASCII
>
> Hi,
>
> (You are listed under "mit.edu/teamhtml/Athena/people.html" as
> doing "Athena bug fixing and reviewing", and your username is mentioned in
> the htmlview script. If you are not responsible, could you please
> forward this message ?)
>
> I used htmlview (indirectly through Pine) to view:
>
> http://www.zdnet.com/zdnn/stories/news/0,4586,2614854,00.html
>
> And I had an open Navigator window, which generated an error and
> refused to open the URL.
>
> After some thinking, I came to the following patch to htmlview,
> which allows for commas in URLs:
>
> 83c83,84
> < /usr/athena/bin/netscape -remote "OpenUrl($url)" && exit 0
> - ---
> > # Netscape complains on commas, e.g. zdnet URLs.
> > /usr/athena/bin/netscape -remote `echo "OpenUrl($url)" | sed
> 's/,/%2C/g'` && exit 0
>
> (the last line is a single line, sorry).
>
> It worked for me, please let me know if you found it useful.
>
> Emilio.
>
>
> ------- End of Forwarded Message
>
>