pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/42400: w3m does not support single quoted meta refresh
>Number: 42400
>Category: pkg
>Synopsis: w3m does not support single quoted meta refresh
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 02 14:15:04 +0000 2009
>Originator: Ryo ONODERA
>Release: NetBSD 5.99.22
>Organization:
>Environment:
System: NetBSD hydrogen.elements.tetera.org 5.99.22 NetBSD 5.99.22
(BRIGHTGIRL5) #0: Fri Nov 27 23:07:06 JST 2009
root%hydrogen.elements.tetera.org@localhost:/usr/obj/sys/arch/i386/compile/BRIGHTGIRL5
i386
Architecture: i386
Machine: i386
>Description:
The www/w3m does not support single quote meta refresh.
This patch from sourceforge.net enable single quote meta refresh support.
It is useful for the login to the Google accounts.
>How-To-Repeat:
% w3m https://www.google.com/accounts/
and input your Google account's user name and password.
The hyperlink in the next meta flash page is not working.
With this patch, the hyperlink in the next meta flash page works properly.
>Fix:
Apply following patch.
$NetBSD$
this patch adds support for single quoted meta refresh parameters, which is
needed to access GMail with w3m.
from: Paul Boekholt ( boekholt ) - 2008-09-06 06:54
support single quoted meta refresh parameter - ID: 2096461
http://sourceforge.net/tracker/?func=detail&aid=2096461&group_id=39518&atid=425441
--- file.c.orig 2007-05-24 00:06:05.000000000 +0900
+++ file.c
@@ -4240,15 +4240,15 @@ getMetaRefreshParam(char *q, Str *refres
while (*q) {
if (!strncasecmp(q, "url=", 4)) {
q += 4;
- if (*q == '\"') /* " */
+ if (*q == '\"' || *q == '\'') /* " or ' */
q++;
r = q;
while (*r && !IS_SPACE(*r) && *r != ';')
r++;
s_tmp = Strnew_charp_n(q, r - q);
- if (s_tmp->ptr[s_tmp->length - 1] == '\"') { /* "
- */
+ if (s_tmp->ptr[s_tmp->length - 1] == '\"' /* " */
+ ||s_tmp->ptr[s_tmp->length - 1] == '\'') { /* ' */
s_tmp->length--;
s_tmp->ptr[s_tmp->length] = '\0';
}
>Unformatted:
Home |
Main Index |
Thread Index |
Old Index