pidgin.mxit: f385f7fe: When retrieving the users current Status...
andrew.victor at mxit.com
andrew.victor at mxit.com
Mon May 9 05:55:32 EDT 2011
----------------------------------------------------------------------
Revision: f385f7fe1f2b01848baf809102442bed936ebf54
Parent: e578f6dc6dc2754ca2c9a8ba2288b1a9506c7838
Author: andrew.victor at mxit.com
Date: 05/09/11 05:51:33
Branch: im.pidgin.pidgin.mxit
URL: http://d.pidgin.im/viewmtn/revision/info/f385f7fe1f2b01848baf809102442bed936ebf54
Changelog:
When retrieving the users current Status-Message via profile packets,
we need to call g_markup_escape_text() on the text.
Changes against parent e578f6dc6dc2754ca2c9a8ba2288b1a9506c7838
patched libpurple/protocols/mxit/protocol.c
-------------- next part --------------
============================================================
--- libpurple/protocols/mxit/protocol.c d3f7d30a82413ff8ea5e2eb02bcb1b6896f0f3aa
+++ libpurple/protocols/mxit/protocol.c e1b0be6e8edd7fa6f593f86c3297470307f90df0
@@ -1763,7 +1763,7 @@ static void mxit_parse_cmd_extprofile( s
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 @@ static void mxit_parse_cmd_extprofile( s
}
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 @@ static void mxit_parse_cmd_extprofile( s
g_free( profile );
}
}
+
+ g_free( statusMsg );
}
More information about the Commits
mailing list