[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH to dev2] Re: lynx-dev Old bug returned (~/.mailcap and text/html)
From: |
Vlad Harchev |
Subject: |
[PATCH to dev2] Re: lynx-dev Old bug returned (~/.mailcap and text/html) |
Date: |
Sun, 28 May 2000 14:42:17 +0500 (SAMST) |
On Fri, 26 May 2000, Andrey A. Chernov wrote:
> As Mutt docs says:
>
> Note: Some older versions of lynx contain a bug where they will
> check the mailcap file for a viewer for text/html. They will find the line
> which calls lynx, and run it. This causes lynx to continuously spawn itself
> to
> view the object.
>
> Now the old bug returned in 2.8.4dev.2
>
> --
> Andrey A. Chernov
> <address@hidden>
> http://nagual.pp.ru/~ache/
>
Here is a patch to fix this (note it's absent in dev1 and 2.8.3dev*).
Best regards,
-Vlad
diff -ru old/src/HTInit.c fixed/src/HTInit.c
--- old/src/HTInit.c Fri May 26 19:40:33 2000
+++ fixed/src/HTInit.c Sun May 28 14:37:12 2000
@@ -324,8 +324,8 @@
return(0);
}
*s++ = '\0';
- if (!strncasecomp(t, "text/html", 9) ||
- !strncasecomp(t, "text/plain", 10)) {
+ if (!strncasecomp(rawentry, "text/html", 9) ||
+ !strncasecomp(rawentry, "text/plain", 10)) {
--s;
*s = ';';
CTRACE((tfp, "ProcessMailcapEntry: Ignoring mailcap entry: %s\n",
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden