changeset 32087:45d3df336659

When retrieving the users current Status-Message via profile packets, we need to call g_markup_escape_text() on the text.
author andrew.victor@mxit.com
date Mon, 09 May 2011 09:51:33 +0000
parents 28cab6c40102
children 6ed15e063e58
files libpurple/protocols/mxit/protocol.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/mxit/protocol.c	Mon May 09 09:49:06 2011 +0000
+++ b/libpurple/protocols/mxit/protocol.c	Mon May 09 09:51:33 2011 +0000
@@ -1763,7 +1763,7 @@
 	int						count;
 	int						i;
 	const char*				avatarId	= NULL;
-	const char*				statusMsg	= NULL;
+	char*					statusMsg	= NULL;
 
 	purple_debug_info( MXIT_PLUGIN_ID, "mxit_parse_cmd_extprofile: profile for '%s'\n", mxitId );
 
@@ -1820,7 +1820,7 @@
 		}
 		else if ( strcmp( CP_PROFILE_STATUS, fname ) == 0 ) {
 			/* status message - just keep a reference to the value */
-			statusMsg = fvalue;
+			statusMsg = g_markup_escape_text( fvalue, -1 );
 		}
 		else if ( strcmp( CP_PROFILE_AVATAR, fname ) == 0 ) {
 			/* avatar id - just keep a reference to the value */
@@ -1928,6 +1928,8 @@
 			g_free( profile );
 		}
 	}
+
+	g_free( statusMsg );
 }