Mercurial > pidgin
changeset 9451:7b56b8ba3dff
[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 <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Mon, 05 Jul 2004 19:11:09 +0000 |
parents | a41f3b685de9 |
children | 0de62d92fb3b |
files | src/protocols/msn/switchboard.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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); } }