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
This commit is contained in:
Jeffrey Stedfast
2002-04-29 19:45:06 +00:00
committed by Jeffrey Stedfast
parent bdfd9e77cc
commit c38efb6c50
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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) &&