Mercurial > pidgin.yaz
changeset 10518:8ae540ad42e7
[gaim-migrate @ 11828]
Escape invitation message text so invalid markup doesn't cause blank
invitation dialogs.
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 15 Jan 2005 16:53:55 +0000 |
parents | 461334f300d7 |
children | bec9130b24d2 |
files | src/server.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/server.c Fri Jan 14 02:02:43 2005 +0000 +++ b/src/server.c Sat Jan 15 16:53:55 2005 +0000 @@ -1160,9 +1160,13 @@ "chat-invited", account, who, name, message, data); if (message != NULL) + { + char *escaped = g_markup_escape_text(message, -1); g_snprintf(buf2, sizeof(buf2), _("%s has invited %s to the chat room %s:\n<b>%s</b>"), - who, gaim_account_get_username(account), name, message); + who, gaim_account_get_username(account), name, escaped); + g_free(escaped); + } else g_snprintf(buf2, sizeof(buf2), _("%s has invited %s to the chat room %s\n"),