From c38efb6c5009e2a2c3d4cf689aa56ce8453d3ad5 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 29 Apr 2002 19:45:06 +0000 Subject: Strip leading/trailing whitespace from the username because users 2002-04-29 Jeffrey Stedfast * mail-account-gui.c (save_service): Strip leading/trailing whitespace from the username because users sometimes accidently add extra spaces here and there. Fixes bug #24009 (along with a number of other "bugs"). svn path=/trunk/; revision=16632 --- mail/ChangeLog | 7 +++++++ mail/mail-account-gui.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index a32417969b..3ef4cdfa68 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2002-04-29 Jeffrey Stedfast + + * mail-account-gui.c (save_service): Strip leading/trailing + whitespace from the username because users sometimes accidently + add extra spaces here and there. Fixes bug #24009 (along with a + number of other "bugs"). + 2002-04-29 Larry Ewing * mail-composer-prefs.c (mail_composer_prefs_construct): clean up diff --git a/mail/mail-account-gui.c b/mail/mail-account-gui.c index ad6bb6747d..833e6d9c3a 100644 --- a/mail/mail-account-gui.c +++ b/mail/mail-account-gui.c @@ -1888,7 +1888,7 @@ save_service (MailAccountGuiService *gsvc, GHashTable *extra_config, if (CAMEL_PROVIDER_ALLOWS (gsvc->provider, CAMEL_URL_PART_USER)) { str = gtk_entry_get_text (gsvc->username); if (str && *str) - url->user = g_strdup (str); + url->user = g_strstrip (g_strdup (str)); } if (CAMEL_PROVIDER_ALLOWS (gsvc->provider, CAMEL_URL_PART_AUTH) && -- cgit v1.2.3