aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2015-10-10 10:20:25 +0000
committerTatsuya Kinoshita <tats@debian.org>2015-10-10 10:20:25 +0000
commit47dea69486f87ec33a89ce9bdf72ddcadd7f6c74 (patch)
tree29b597574bd21f4c329c835c1b4b34ae8d7ee64e
parentUpdate ChangeLog (diff)
downloadw3m-47dea69486f87ec33a89ce9bdf72ddcadd7f6c74.tar.gz
w3m-47dea69486f87ec33a89ce9bdf72ddcadd7f6c74.zip
Remove incomplete special_domain tests
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=385702
Diffstat (limited to '')
-rw-r--r--cookie.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/cookie.c b/cookie.c
index 8a6f447..705e277 100644
--- a/cookie.c
+++ b/cookie.c
@@ -254,10 +254,6 @@ find_cookie(ParsedURL *pu)
return tmp;
}
-char *special_domain[] = {
- ".com", ".edu", ".gov", ".mil", ".net", ".org", ".int", NULL
-};
-
int
check_avoid_wrong_number_of_dots_domain( Str domain )
{
@@ -333,19 +329,6 @@ add_cookie(ParsedURL *pu, Str name, Str value,
COOKIE_ERROR(COO_ESPECIAL);
}
}
- else if (n == 2) {
- char **sdomain;
- int ok = 0;
- for (sdomain = special_domain; !ok && *sdomain; sdomain++) {
- int offset = domain->length - strlen(*sdomain);
- if (offset >= 0 &&
- strcasecmp(*sdomain, &domain->ptr[offset]) == 0)
- ok = 1;
- }
- if (!ok && ! check_avoid_wrong_number_of_dots_domain(domain)) {
- COOKIE_ERROR(COO_ESPECIAL);
- }
- }
}
else {
/* [DRAFT 12] s. 4.3.2 case 2 */