NetBSD Problem Report #42400

From ryo_on@yk.rim.or.jp  Wed Dec  2 14:14:56 2009
Return-Path: <ryo_on@yk.rim.or.jp>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id E98D663C497
	for <gnats-bugs@gnats.netbsd.org>; Wed,  2 Dec 2009 14:14:56 +0000 (UTC)
Message-Id: <20091202141456.767F963B12C@mail.netbsd.org>
Date: Wed,  2 Dec 2009 14:14:54 +0000 (UTC)
From: ryo_on@yk.rim.or.jp
Reply-To: ryo_on@yk.rim.or.jp
To: gnats-bugs@gnats.NetBSD.org
Subject: w3m does not support single quoted meta refresh
X-Send-Pr-Version: 3.95

>Number:         42400
>Category:       pkg
>Synopsis:       w3m does not support single quoted meta refresh
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    uebayasi
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 02 14:15:04 +0000 2009
>Closed-Date:    Tue Apr 05 06:13:19 +0000 2011
>Last-Modified:  Tue Apr 05 06:13:19 +0000 2011
>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:/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';
 	    }



>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->uebayasi
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Wed, 02 Dec 2009 14:37:52 +0000
Responsible-Changed-Why:
Over to maintainer.


State-Changed-From-To: open->closed
State-Changed-By: uebayasi@NetBSD.org
State-Changed-When: Tue, 05 Apr 2011 06:13:19 +0000
State-Changed-Why:
Comitted!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.