aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-04-30 03:45:06 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-04-30 03:45:06 +0800
commitc38efb6c5009e2a2c3d4cf689aa56ce8453d3ad5 (patch)
tree357959cde49066f01b8208eb077587ae115fc4cf /mail
parentbdfd9e77ccb11b5311ec736340b185b88cd43cb1 (diff)
downloadgsoc2013-evolution-c38efb6c5009e2a2c3d4cf689aa56ce8453d3ad5.tar.gz
gsoc2013-evolution-c38efb6c5009e2a2c3d4cf689aa56ce8453d3ad5.tar.zst
gsoc2013-evolution-c38efb6c5009e2a2c3d4cf689aa56ce8453d3ad5.zip
Strip leading/trailing whitespace from the username because users
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"). svn path=/trunk/; revision=16632
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/mail-account-gui.c2
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) &&