Revision 4d429c5c6d365433f8e31922bad0857082c2257c

nosnilmot at pidgin.im nosnilmot at pidgin.im
Wed Apr 11 01:23:12 EDT 2007


o   -----------------------------------------------------------------
|   Revision: 4d429c5c6d365433f8e31922bad0857082c2257c
|   Ancestor: f4fe8fbec47060e85010fc7e6d02fa068f1f61ba
|   Author: nosnilmot
|   Date: 2005-01-15T16:53:42
|   Branch: im.pidgin.gaim.oldstatus
|   
|   Modified files:
|           src/server.c
|   
|   ChangeLog: 
|   
|   [gaim-migrate @ 11827]
|   Escape invitation message text so invalid markup doesn't cause blank
|   invitation dialogs.
|   ============================================================
|   --- src/server.c	99fa1ab5e8e8dd48a543c49520ab64de2db3ccaa
|   +++ src/server.c	a12072f1d3ecba621f995ed65b1383154b39a95f
|   @@ -1467,9 +1467,13 @@ void serv_got_chat_invite(GaimConnection
|    					 "chat-invited", account, who, name, message, data);
|    
|    	if (message != NULL)
|   +	{
|   +		char *escaped = g_markup_escape_text(message, -1);
|    		g_snprintf(buf2, sizeof(buf2),
|    				   _("%s has invited %s to the chat room %s:\n<b>%s</b>"),
|   -				   who, gaim_account_get_username(account), name, message);
|   +				   who, gaim_account_get_username(account), name, escaped);
|   +		g_free(escaped);
|   +	}
|    	else
|    		g_snprintf(buf2, sizeof(buf2),
|    				   _("%s has invited %s to the chat room %s\n"),

To get the patch for this revision, please do this:
mtn log --last 1 --diffs --from 4d429c5c6d365433f8e31922bad0857082c2257c


More information about the Commits mailing list