# HG changeset patch # User Luke Schierer # Date 1111806483 0 # Node ID d5f2ebf794298c1d3b1d199f01574bd0e8b86d2f # Parent c4cb90065e1d8cc1c849cc9daf63a4e302bfd85e [gaim-migrate @ 12335] " This fixes one of the bugs decadix found. The symptom was an empty box with two buttons: Cancel and Accept. For this one, I believe the escaping belongs in this function and not the prpls because that's how the escaping was being done for message. I just added escaping on two other variables." --rlaager committer: Tailor Script diff -r c4cb90065e1d -r d5f2ebf79429 src/server.c --- a/src/server.c Sat Mar 26 02:43:49 2005 +0000 +++ b/src/server.c Sat Mar 26 03:08:03 2005 +0000 @@ -1153,6 +1153,8 @@ GaimAccount *account; char buf2[BUF_LONG]; struct chat_invite_data *cid = g_new0(struct chat_invite_data, 1); + char *name_escaped = g_markup_escape_text(name, -1); + char *who_escaped = g_markup_escape_text(who, -1); account = gaim_connection_get_account(gc); @@ -1161,16 +1163,19 @@ if (message != NULL) { - char *escaped = g_markup_escape_text(message, -1); + char *message_escaped = g_markup_escape_text(message, -1); g_snprintf(buf2, sizeof(buf2), _("%s has invited %s to the chat room %s:\n%s"), - who, gaim_account_get_username(account), name, escaped); - g_free(escaped); + who_escaped, gaim_account_get_username(account), name_escaped, message_escaped); + g_free(message_escaped); } else g_snprintf(buf2, sizeof(buf2), _("%s has invited %s to the chat room %s\n"), - who, gaim_account_get_username(account), name); + who_escaped, gaim_account_get_username(account), name_escaped); + + g_free(name_escaped); + g_free(who_escaped); cid->gc = gc; cid->components = data;