comparison libpurple/protocols/mxit/roster.c @ 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 259bbfb423d4
comparison
equal deleted inserted replaced
29038:cc391f752b05 29039:bbc3eac0ee95
396 if ( contact->statusMsg ) { 396 if ( contact->statusMsg ) {
397 g_free( contact->statusMsg ); 397 g_free( contact->statusMsg );
398 contact->statusMsg = NULL; 398 contact->statusMsg = NULL;
399 } 399 }
400 if ( statusMsg[0] != '\0' ) 400 if ( statusMsg[0] != '\0' )
401 contact->statusMsg = g_strdup( statusMsg ); 401 contact->statusMsg = g_markup_escape_text( statusMsg, -1 );
402 402
403 /* update avatarId */ 403 /* update avatarId */
404 if ( ( contact->avatarId ) && ( g_ascii_strcasecmp( contact->avatarId, avatarId ) == 0 ) ) { 404 if ( ( contact->avatarId ) && ( g_ascii_strcasecmp( contact->avatarId, avatarId ) == 0 ) ) {
405 /* avatar has not changed - do nothing */ 405 /* avatar has not changed - do nothing */
406 } 406 }