[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lynx-dev] Google Mail trouble: `div' elements within `a' elements'
From: |
Thomas Dickey |
Subject: |
Re: [Lynx-dev] Google Mail trouble: `div' elements within `a' elements' bodies |
Date: |
Sun, 31 Aug 2008 13:07:07 -0400 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Thu, Aug 28, 2008 at 12:36:52PM +0700, Ivan Shmakov wrote:
> There's one more problem with Google Mail vs. Lynx interaction.
> The redirection page contains:
>
> <html><head><title>Redirecting</title>
>
> <meta http-equiv="refresh" content="0;
> url='http://www.google.ru/accounts/SetSID?...%2540gmail.com'">
> ....
>
> Lynx shows it as:
>
> REFRESH(0 sec):
> 'http://www.google.ru/accounts/SetSID?...%2540gmail.com'
>
> Note that the single quotes are considered as part of the URL by
> Lynx.
That'll require a code-fix. The last time it was touched was in
2003-01-22 (2.8.5dev.13)
* modify parsing of refresh-URL to strip single quotes, to handle
http://tovar.yandex.ru/
(reported by LP) -TD
That improved the chunk handling refresh urls, but overlooked the detail needed
here (the old code didn't do it either). Here's a fix which seems to work:
diff -u -r1.89 src/LYCharUtils.c
--- src/LYCharUtils.c 2007/08/02 19:31:34 1.89
+++ src/LYCharUtils.c 2008/08/31 17:00:05
@@ -2490,6 +2490,8 @@
} else if (!strcasecomp(NonNull(http_equiv), "Refresh")) {
char *Seconds = NULL;
+ LYUCTranslateHTMLString(&content, me->tag_charset, me->tag_charset,
+ NO, NO, YES, st_other);
LYParseRefreshURL(content, &Seconds, &href);
if (Seconds) {
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net