File w3m-disable-cookie-special-domain-check.patch of Package w3m

--- w3m-0.5.2/cookie.c
+++ w3m-0.5.2/cookie.c
@@ -306,6 +306,7 @@
 	    if (n < 2) {
 		COOKIE_ERROR(COO_ESPECIAL);
 	    }
+#if 0
 	    else if (n == 2) {
 		char **sdomain;
 		int ok = 0;
@@ -318,6 +319,7 @@
 		if (!ok)
 		    COOKIE_ERROR(COO_ESPECIAL);
 	    }
+#endif
 	}
 	else {
 	    /* [DRAFT 12] s. 4.3.2 case 2 */
--- w3m-0.5.2/fm.h
+++ w3m-0.5.2/fm.h
@@ -722,7 +722,7 @@
 						/* 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) */
--- w3m-0.5.2/rc.c
+++ w3m-0.5.2/rc.c
@@ -310,7 +310,7 @@
 #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")},
openSUSE Build Service is sponsored by