Commit db2b0d58 authored by Michael Catanzaro's avatar Michael Catanzaro Committed by Michael Catanzaro

cookie-jar: bail if hostname is an empty string

There are several other ways to fix the problem with this function, but
skipping over all of the code is probably the simplest.

Fixes #3
parent 171a461f
......@@ -307,7 +307,7 @@ get_cookies (SoupCookieJar *jar, SoupURI *uri, gboolean for_http, gboolean copy_
priv = soup_cookie_jar_get_instance_private (jar);
if (!uri->host)
if (!uri->host || !uri->host[0])
return NULL;
/* The logic here is a little weird, but the plan is that if
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment