[Commits] prefs_account.c 1.105.2.170 1.105.2.171

pawel at claws-mail.org pawel at claws-mail.org
Mon Nov 21 23:58:22 CET 2011


Update of /home/claws-mail/claws/src
In directory claws-mail:/tmp/cvs-serv14217/src

Modified Files:
      Tag: gtk2
	prefs_account.c 
Log Message:
2011-11-21 [pawel]	3.7.10cvs98

	* src/prefs_account.c
		Fix bug #2116 'Rip spaces off server names in account
		configuration'
		g_strstrip() domain names to be sure they are valid

Index: prefs_account.c
===================================================================
RCS file: /home/claws-mail/claws/src/prefs_account.c,v
retrieving revision 1.105.2.170
retrieving revision 1.105.2.171
diff -u -d -r1.105.2.170 -r1.105.2.171
--- prefs_account.c	22 Oct 2011 17:09:03 -0000	1.105.2.170
+++ prefs_account.c	21 Nov 2011 22:58:20 -0000	1.105.2.171
@@ -3698,8 +3698,16 @@
 	if (cancelled && new_account) {
 		prefs_account_free(ac_prefs);
 		return NULL;
-	} else 
+	} else {
+		if (ac_prefs->recv_server)
+			g_strstrip(ac_prefs->recv_server);
+		if (ac_prefs->smtp_server)
+			g_strstrip(ac_prefs->smtp_server);
+		if (ac_prefs->nntp_server)
+			g_strstrip(ac_prefs->nntp_server);
+
 		return ac_prefs;
+	}
 }
 
 #if !GTK_CHECK_VERSION(3, 0, 0)



More information about the Commits mailing list