diff options
-rw-r--r-- | mail/ChangeLog | 7 | ||||
-rw-r--r-- | mail/mail-account-gui.c | 2 |
2 files changed, 8 insertions, 1 deletions
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 <fejj@ximian.com> + + * 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 <lewing@ximian.com> * 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) && |