changeset 29039:bbc3eac0ee95

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)
author andrew.victor@mxit.com
date Tue, 24 Nov 2009 15:53:11 +0000
parents cc391f752b05
children 1375fd2d9df2
files libpurple/protocols/mxit/roster.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/mxit/roster.c	Tue Nov 24 15:12:42 2009 +0000
+++ b/libpurple/protocols/mxit/roster.c	Tue Nov 24 15:53:11 2009 +0000
@@ -398,7 +398,7 @@
 		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 ) ) {