[evolution-data-server/gnome-3-16] source_webdav_update_properties_from_soup_uri: Ignore empty user name
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-16] source_webdav_update_properties_from_soup_uri: Ignore empty user name
- Date: Mon, 23 Mar 2015 16:56:50 +0000 (UTC)
commit 4d9cc78aa074cde4e7d9bdcfce97f868c556cbff
Author: Milan Crha <mcrha redhat com>
Date: Mon Mar 23 14:04:39 2015 +0100
source_webdav_update_properties_from_soup_uri: Ignore empty user name
Do not overwrite stored user name, when the set SoupURI doesn't have
user name set.
libedataserver/e-source-webdav.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/libedataserver/e-source-webdav.c b/libedataserver/e-source-webdav.c
index 8b38de9..fd31993 100644
--- a/libedataserver/e-source-webdav.c
+++ b/libedataserver/e-source-webdav.c
@@ -170,9 +170,14 @@ source_webdav_update_properties_from_soup_uri (ESourceWebdav *webdav_extension)
extension,
"host", soup_uri->host,
"port", soup_uri->port,
- "user", soup_uri->user,
NULL);
+ if (soup_uri->user && *soup_uri->user)
+ g_object_set (
+ extension,
+ "user", soup_uri->user,
+ NULL);
+
extension_name = E_SOURCE_EXTENSION_SECURITY;
extension = e_source_get_extension (source, extension_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]