--- lib/cookie.c.old Mon Aug 2 09:54:45 2004 +++ lib/cookie.c Mon Aug 2 10:01:51 2004 @@ -218,46 +218,35 @@ } } else if(strequal("domain", name)) { /* note that this name may or may not have a preceeding dot, but we don't care about that, we treat the names the same anyway */ const char *domptr=whatptr; int dotcount=1; unsigned int i; - static const char *seventhree[]= { - "com", "edu", "net", "org", "gov", "mil", "int" - }; + /* Count the dots, we need to make sure that there are enough + of them. */ - /* Count the dots, we need to make sure that there are THREE dots - in the normal domains, or TWO in the seventhree-domains. */ - if('.' == whatptr[0]) /* don't count the initial dot, assume it */ domptr++; do { domptr = strchr(domptr, '.'); if(domptr) { domptr++; dotcount++; } } while(domptr); - for(i=0; - i