[evolution/webkit] Bug #633332 - Preserve port number in WebDAV address book
- From: Dan VrÃtil <dvratil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit] Bug #633332 - Preserve port number in WebDAV address book
- Date: Mon, 11 Jul 2011 13:54:40 +0000 (UTC)
commit 1453a13fb1c16bd9f264b3097955ad6907a7fcac
Author: Milan Crha <mcrha redhat com>
Date: Wed Dec 8 15:59:01 2010 +0100
Bug #633332 - Preserve port number in WebDAV address book
.../webdav-account-setup/webdav-contacts-source.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/plugins/webdav-account-setup/webdav-contacts-source.c b/plugins/webdav-account-setup/webdav-contacts-source.c
index 6ce62e4..870fa46 100644
--- a/plugins/webdav-account-setup/webdav-contacts-source.c
+++ b/plugins/webdav-account-setup/webdav-contacts-source.c
@@ -123,9 +123,17 @@ set_ui_from_source (ui_data *data)
gtk_toggle_button_set_active (data->avoid_ifmatch_toggle, avoid_ifmatch);
/* it's really a http or https protocol */
- if (suri)
+ if (suri) {
+ gint port;
+
+ port = soup_uri_get_port (suri);
+
soup_uri_set_scheme (suri, use_ssl ? "https" : "http");
+ if (port > 0 && port != soup_uri_get_port (suri))
+ soup_uri_set_port (suri, port);
+ }
+
/* remove user/username and set user field */
if (suri && suri->user != NULL) {
gtk_entry_set_text (data->username_entry, suri->user);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]