aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2012-07-12 16:02:26 +0800
committerCarlos Garcia Campos <carlosgc@gnome.org>2012-07-12 16:50:11 +0800
commit19dca7b70c9477c72880b2983275883205dbed98 (patch)
tree505321aff1aa4b141a5afbe34256e7daa7ba7a1f /lib
parent7bd968f56a52e30d09998fee20fdd20d476e3a4a (diff)
downloadgsoc2013-epiphany-19dca7b70c9477c72880b2983275883205dbed98.tar
gsoc2013-epiphany-19dca7b70c9477c72880b2983275883205dbed98.tar.gz
gsoc2013-epiphany-19dca7b70c9477c72880b2983275883205dbed98.tar.bz2
gsoc2013-epiphany-19dca7b70c9477c72880b2983275883205dbed98.tar.lz
gsoc2013-epiphany-19dca7b70c9477c72880b2983275883205dbed98.tar.xz
gsoc2013-epiphany-19dca7b70c9477c72880b2983275883205dbed98.tar.zst
gsoc2013-epiphany-19dca7b70c9477c72880b2983275883205dbed98.zip
ephy-web-app-utils: Use soup_cookie_domain_matches to check the cookie domain
This fixes the cases where sites like www.foo.com save cookies for domain .foo.com, so that when an app is created for www.foo.com, cookies in the current jar for the domain .foo.com are not copied to the app cookie jar.
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-web-app-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ephy-web-app-utils.c b/lib/ephy-web-app-utils.c
index bd4717199..62e3e1cc3 100644
--- a/lib/ephy-web-app-utils.c
+++ b/lib/ephy-web-app-utils.c
@@ -294,7 +294,7 @@ create_cookie_jar_for_domain (const char *address, const char *directory)
for (p = cookies; p; p = p->next) {
SoupCookie *cookie = (SoupCookie*)p->data;
- if (g_str_has_suffix (cookie->domain, domain))
+ if (soup_cookie_domain_matches (cookie, domain))
soup_cookie_jar_add_cookie (new_jar, cookie);
else
soup_cookie_free (cookie);