diff options
author | Not Zed <NotZed@Ximian.com> | 2005-02-23 14:11:58 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2005-02-23 14:11:58 +0800 |
commit | 17a0168001b824031f022b08f51506aba1473d37 (patch) | |
tree | 6c5e954970a504dab3ac93443714825624c27d07 /plugins | |
parent | 87b025c4001863c8f62f1412f5be21aa3a31ecd9 (diff) | |
download | gsoc2013-evolution-17a0168001b824031f022b08f51506aba1473d37.tar.gz gsoc2013-evolution-17a0168001b824031f022b08f51506aba1473d37.tar.zst gsoc2013-evolution-17a0168001b824031f022b08f51506aba1473d37.zip |
if the host is null in the url, set it to "", so it has a non-null value.
2005-02-21 Not Zed <NotZed@Ximian.com>
* 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
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/exchange-account-setup/ChangeLog | 5 | ||||
-rw-r--r-- | plugins/exchange-account-setup/exchange-account-setup.c | 10 |
2 files changed, 15 insertions, 0 deletions
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 <NotZed@Ximian.com> + + * 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 <rsushma@novell.com> * 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); |