# HG changeset patch # User andrew.victor@mxit.com # Date 1304934693 0 # Node ID 45d3df336659d0a9b4233be1e0f5ef50b220ed6b # Parent 28cab6c40102ce9e93439d4120abdbbf633c8c09 When retrieving the users current Status-Message via profile packets, we need to call g_markup_escape_text() on the text. diff -r 28cab6c40102 -r 45d3df336659 libpurple/protocols/mxit/protocol.c --- 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 ); }