From 9c85c50be85ab689fa90b4fd97f3b373967057ab Mon Sep 17 00:00:00 2001 From: Sivaiah Nallagatla Date: Thu, 17 Jun 2004 15:14:55 +0000 Subject: check for host being non-NULL in soup uri. host can be null for uri's of 2004-06-17 Sivaiah Nallagatla * gui/itip-utils.c (itip_publish_comp) : check for host being non-NULL in soup uri. host can be null for uri's of the form file:/foo or http:/foo etc svn path=/trunk/; revision=26390 --- calendar/ChangeLog | 6 ++++++ calendar/gui/itip-utils.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 56f7d79e9f..0c95a33edc 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,9 @@ +2004-06-17 Sivaiah Nallagatla + + * gui/itip-utils.c (itip_publish_comp) : check for + host being non-NULL in soup uri. host can be null + for uri's of the form file:/foo or http:/foo etc + 2004-06-17 Rodrigo Moya Fixes #60309 diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c index 156dd08026..ce893a48ec 100644 --- a/calendar/gui/itip-utils.c +++ b/calendar/gui/itip-utils.c @@ -1153,7 +1153,7 @@ itip_publish_comp (ECal *client, gchar *uri, gchar *username, session = soup_session_async_new (); real_uri = soup_uri_new (uri); - if (!real_uri) { + if (!real_uri || !real_uri->host) { g_warning (G_STRLOC ": Invalid URL: %s", uri); g_object_unref (session); return FALSE; -- cgit v1.2.3