diff options
-rw-r--r-- | src/domain.c | 8 | ||||
-rw-r--r-- | src/domain.h | 1 | ||||
-rw-r--r-- | src/soup.c | 2 |
3 files changed, 1 insertions, 10 deletions
diff --git a/src/domain.c b/src/domain.c index 29f813b1..ac036f9b 100644 --- a/src/domain.c +++ b/src/domain.c @@ -139,14 +139,6 @@ count_char(const char *str, char ch) return count; } -gboolean -domain_is_tld(const char *host) -{ - g_return_val_if_fail(host != NULL, false); - - return g_hash_table_lookup(s_tld_table, host) != NULL; -} - const char * domain_get_tld(const char *host) { diff --git a/src/domain.h b/src/domain.h index 8ce54bea..8203db78 100644 --- a/src/domain.h +++ b/src/domain.h @@ -30,5 +30,4 @@ GSList * domain_get_cookie_domains(WebKitWebView *wv); gboolean domain_match(char **, const char *, const char *); const char * domain_get_base_for_host(const char *host); const char * domain_get_tld(const char *domain); -gboolean domain_is_tld(const char *domain); #endif @@ -287,7 +287,7 @@ dwb_soup_cookie_changed_cb(SoupCookieJar *jar, SoupCookie *old, SoupCookie *new, if (*base == '.') base++; - if (domain_is_tld(base)) + if (domain_get_tld(base) == NULL) { fprintf(stderr, "Site tried to set super-cookie @ TLD %s (base %s)\n", new->domain, base); return; |