summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchleun.moon <chleun.moon@samsung.com>2018-09-04 20:00:10 +0900
committerchleun.moon <chleun.moon@samsung.com>2018-09-05 09:13:07 +0900
commit9267b433b80a62ca92434af55d97568efc10d961 (patch)
tree3996cd736b685cd73e596af607b0871f09479d55
parent99e5d143b36993ac01cc03509bfb9c36b705bf74 (diff)
downloadlibsoup-accepted/tizen_4.0_unified.tar.gz
libsoup-accepted/tizen_4.0_unified.tar.bz2
libsoup-accepted/tizen_4.0_unified.zip
https://nvd.nist.gov/vuln/detail/CVE-2018-12910 Change-Id: Icd72ec579aaf2e4d372be33ebb9346a34565d097 Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
-rwxr-xr-xlibsoup/soup-cookie-jar.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libsoup/soup-cookie-jar.c b/libsoup/soup-cookie-jar.c
index eac9cd96..c8eb960a 100755
--- a/libsoup/soup-cookie-jar.c
+++ b/libsoup/soup-cookie-jar.c
@@ -176,7 +176,7 @@ soup_cookie_jar_class_init (SoupCookieJarClass *jar_class)
G_STRUCT_OFFSET (SoupCookieJarClass, changed),
NULL, NULL,
NULL,
- G_TYPE_NONE, 2,
+ G_TYPE_NONE, 2,
SOUP_TYPE_COOKIE | G_SIGNAL_TYPE_STATIC_SCOPE,
SOUP_TYPE_COOKIE | G_SIGNAL_TYPE_STATIC_SCOPE);
@@ -229,7 +229,7 @@ soup_cookie_jar_class_init (SoupCookieJarClass *jar_class)
* Since: 2.24
**/
SoupCookieJar *
-soup_cookie_jar_new (void)
+soup_cookie_jar_new (void)
{
return g_object_new (SOUP_TYPE_COOKIE_JAR, NULL);
}
@@ -307,7 +307,7 @@ get_cookies (SoupCookieJar *jar, SoupURI *uri, gboolean for_http, gboolean copy_
priv = SOUP_COOKIE_JAR_GET_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
@@ -834,7 +834,7 @@ soup_cookie_jar_get_accept_policy (SoupCookieJar *jar)
* soup_cookie_jar_set_accept_policy:
* @jar: a #SoupCookieJar
* @policy: a #SoupCookieJarAcceptPolicy
- *
+ *
* Sets @policy as the cookie acceptance policy for @jar.
*
* Since: 2.30