File w3m-disable-cookie-special-domain-check.patch of Package w3m.2791
Index: w3m-0.5.3/cookie.c
===================================================================
--- w3m-0.5.3.orig/cookie.c
+++ w3m-0.5.3/cookie.c
@@ -332,6 +332,7 @@ add_cookie(ParsedURL *pu, Str name, Str
COOKIE_ERROR(COO_ESPECIAL);
}
}
+#if 0
else if (n == 2) {
char **sdomain;
int ok = 0;
@@ -345,6 +346,7 @@ add_cookie(ParsedURL *pu, Str name, Str
COOKIE_ERROR(COO_ESPECIAL);
}
}
+#endif
}
else {
/* [DRAFT 12] s. 4.3.2 case 2 */
Index: w3m-0.5.3/fm.h
===================================================================
--- w3m-0.5.3.orig/fm.h
+++ w3m-0.5.3/fm.h
@@ -726,7 +726,7 @@ struct cookie {
/* version 1' refers to the Internet draft to obsolete RFC 2109 */
#define COO_EINTERNAL (1) /* unknown error; probably forgot to convert "return 1" in cookie.c */
#define COO_ETAIL (2 | COO_OVERRIDE_OK) /* tail match failed (version 0) */
-#define COO_ESPECIAL (3) /* special domain check failed (version 0) */
+#define COO_ESPECIAL (3 | COO_OVERRIDE_OK) /* special domain check failed (version 0) */
#define COO_EPATH (4) /* Path attribute mismatch (version 1 case 1) */
#define COO_ENODOT (5 | COO_OVERRIDE_OK) /* no embedded dots in Domain (version 1 case 2.1) */
#define COO_ENOTV1DOM (6 | COO_OVERRIDE_OK) /* Domain does not start with a dot (version 1 case 2.2) */
Index: w3m-0.5.3/rc.c
===================================================================
--- w3m-0.5.3.orig/rc.c
+++ w3m-0.5.3/rc.c
@@ -316,7 +316,7 @@ static struct sel_c dnsorders[] = {
#ifdef USE_COOKIE
static struct sel_c badcookiestr[] = {
{N_S(ACCEPT_BAD_COOKIE_DISCARD), N_("discard")},
-#if 0
+#if 1
{N_S(ACCEPT_BAD_COOKIE_ACCEPT), N_("accept")},
#endif
{N_S(ACCEPT_BAD_COOKIE_ASK), N_("ask")},