From 17a0168001b824031f022b08f51506aba1473d37 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 23 Feb 2005 06:11:58 +0000 Subject: if the host is null in the url, set it to "", so it has a non-null value. 2005-02-21 Not Zed * exchange-account-setup.c (org_gnome_exchange_owa_url): if the host is null in the url, set it to "", so it has a non-null value. svn path=/trunk/; revision=28857 --- plugins/exchange-account-setup/ChangeLog | 5 +++++ plugins/exchange-account-setup/exchange-account-setup.c | 10 ++++++++++ 2 files changed, 15 insertions(+) (limited to 'plugins/exchange-account-setup') diff --git a/plugins/exchange-account-setup/ChangeLog b/plugins/exchange-account-setup/ChangeLog index 738b51dbd4..26704d0672 100644 --- a/plugins/exchange-account-setup/ChangeLog +++ b/plugins/exchange-account-setup/ChangeLog @@ -1,3 +1,8 @@ +2005-02-21 Not Zed + + * exchange-account-setup.c (org_gnome_exchange_owa_url): if the + host is null in the url, set it to "", so it has a non-null value. + 2005-02-07 Sushma Rai * org-gnome-exchange-account-setup.eplug.in: Added plugin for adding diff --git a/plugins/exchange-account-setup/exchange-account-setup.c b/plugins/exchange-account-setup/exchange-account-setup.c index 3d1493d5f5..77fb6ea244 100644 --- a/plugins/exchange-account-setup/exchange-account-setup.c +++ b/plugins/exchange-account-setup/exchange-account-setup.c @@ -326,6 +326,16 @@ org_gnome_exchange_owa_url(EPlugin *epl, EConfigHookItemFactoryData *data) owa_url = camel_url_get_param(url, "owa_url"); + /* if the host is null, then user+other info is dropped silently, force it to be kept */ + if (url->host == NULL) { + char *uri; + + camel_url_set_host(url, ""); + uri = camel_url_to_string(url, 0); + e_account_set_string(target_account->account, E_ACCOUNT_SOURCE_URL, uri); + g_free(uri); + } + row = ((GtkTable *)data->parent)->nrows; hbox = gtk_hbox_new (FALSE, 6); -- cgit v1.2.3