diff options
author | Carlos Garcia Campos <cgarcia@igalia.com> | 2012-07-12 16:02:26 +0800 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2012-07-12 16:50:11 +0800 |
commit | 19dca7b70c9477c72880b2983275883205dbed98 (patch) | |
tree | 505321aff1aa4b141a5afbe34256e7daa7ba7a1f | |
parent | 7bd968f56a52e30d09998fee20fdd20d476e3a4a (diff) | |
download | gsoc2013-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.
-rw-r--r-- | lib/ephy-web-app-utils.c | 2 |
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); |