pidgin.mxit: f160c344: We need to escape any special "html" cha...

andrew.victor at mxit.com andrew.victor at mxit.com
Tue Nov 24 10:55:22 EST 2009


-----------------------------------------------------------------
Revision: f160c344624e9fdd06fd3a5e7eb58bcb772274dd
Ancestor: 49cce519768927339801f56f4a1c6c042bf55fe4
Author: andrew.victor at mxit.com
Date: 2009-11-24T15:53:11
Branch: im.pidgin.pidgin.mxit
URL: http://d.pidgin.im/viewmtn/revision/info/f160c344624e9fdd06fd3a5e7eb58bcb772274dd

Modified files:
        libpurple/protocols/mxit/roster.c

ChangeLog: 

We need to escape any special "html" characters in a status message, otherwise
the buddy tooltip appears empty and the buddy list window acts strange.
(Similar issue to Ticket #10304)


-------------- next part --------------
============================================================
--- libpurple/protocols/mxit/roster.c	53f664607bd5214e9b3e63355b3b44210a160360
+++ libpurple/protocols/mxit/roster.c	944fcba604bbc56d6850ad765c12f19dfd59f79b
@@ -398,7 +398,7 @@ void mxit_update_buddy_presence( struct 
 		contact->statusMsg = NULL;
 	}
 	if ( statusMsg[0] != '\0' )
-		contact->statusMsg = g_strdup( statusMsg );	
+		contact->statusMsg = g_markup_escape_text( statusMsg, -1 );
 
 	/* update avatarId */
 	if ( ( contact->avatarId ) && ( g_ascii_strcasecmp( contact->avatarId, avatarId ) == 0 ) ) {


More information about the Commits mailing list