# HG changeset patch # User Tim Ringenbach # Date 1089054669 0 # Node ID 7b56b8ba3dff4e3163e942afbda4c80d60468278 # Parent a41f3b685de9f8d007bd6736aa755b10ff638d8c [gaim-migrate @ 10275] This fixes bug 984612, which is a duplicate of some other bug. It html escapes msn friendly names so they don't contain html or invalid markup, and not display all the way in "foo closed the conversation window" type messages. committer: Tailor Script diff -r a41f3b685de9 -r 7b56b8ba3dff src/protocols/msn/switchboard.c --- a/src/protocols/msn/switchboard.c Mon Jul 05 18:25:08 2004 +0000 +++ b/src/protocols/msn/switchboard.c Mon Jul 05 19:11:09 2004 +0000 @@ -174,15 +174,15 @@ } else { - const char *username; + char *username; GaimConversation *conv; GaimBuddy *b; char *str = NULL; if ((b = gaim_find_buddy(account, user)) != NULL) - username = gaim_get_buddy_alias(b); + username = gaim_escape_html(gaim_get_buddy_alias(b)); else - username = user; + username = gaim_escape_html(user); if (cmd->param_count == 2 && atoi(cmd->params[1]) == 1) { @@ -211,6 +211,7 @@ } msn_switchboard_disconnect(swboard); + g_free(username); } }