Blame SOURCES/0001-cookie-jar-bail-if-hostname-is-an-empty-string.patch
|
|
1f93a5 |
From db2b0d5809d5f8226d47312b40992cadbcde439f Mon Sep 17 00:00:00 2001
|
|
|
1f93a5 |
From: Michael Catanzaro <mcatanzaro@igalia.com>
|
|
|
1f93a5 |
Date: Sun, 24 Jun 2018 19:46:19 -0500
|
|
|
1f93a5 |
Subject: [PATCH] cookie-jar: bail if hostname is an empty string
|
|
|
1f93a5 |
|
|
|
1f93a5 |
There are several other ways to fix the problem with this function, but
|
|
|
1f93a5 |
skipping over all of the code is probably the simplest.
|
|
|
1f93a5 |
|
|
|
1f93a5 |
Fixes #3
|
|
|
1f93a5 |
---
|
|
|
1f93a5 |
libsoup/soup-cookie-jar.c | 2 +-
|
|
|
1f93a5 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
1f93a5 |
|
|
|
1f93a5 |
diff --git a/libsoup/soup-cookie-jar.c b/libsoup/soup-cookie-jar.c
|
|
|
1f93a5 |
index 2369c8a..b2b7890 100644
|
|
|
1f93a5 |
--- a/libsoup/soup-cookie-jar.c
|
|
|
1f93a5 |
+++ b/libsoup/soup-cookie-jar.c
|
|
|
1f93a5 |
@@ -307,7 +307,7 @@ get_cookies (SoupCookieJar *jar, SoupURI *uri, gboolean for_http, gboolean copy_
|
|
|
1f93a5 |
|
|
|
1f93a5 |
priv = soup_cookie_jar_get_instance_private (jar);
|
|
|
1f93a5 |
|
|
|
1f93a5 |
- if (!uri->host)
|
|
|
1f93a5 |
+ if (!uri->host || !uri->host[0])
|
|
|
1f93a5 |
return NULL;
|
|
|
1f93a5 |
|
|
|
1f93a5 |
/* The logic here is a little weird, but the plan is that if
|
|
|
1f93a5 |
--
|
|
|
1f93a5 |
2.17.1
|
|
|
1f93a5 |
|