# HG changeset patch # User Sadrul Habib Chowdhury # Date 1186967060 0 # Node ID c8f18378045c3a29db92304bdac3c44d0f5a7a8b # Parent 476e16ce29d08baf62a0cc42b0c7b838a56d2c17 Properly escape the chat-topics in the infopane. Fixes #1903. diff -r 476e16ce29d0 -r c8f18378045c pidgin/gtkconv.c --- a/pidgin/gtkconv.c Mon Aug 13 00:52:41 2007 +0000 +++ b/pidgin/gtkconv.c Mon Aug 13 01:04:20 2007 +0000 @@ -6294,11 +6294,13 @@ } else if (purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_CHAT) { PurpleConvChat *chat = PURPLE_CONV_CHAT(conv); const char *topic = purple_conv_chat_get_topic(chat); + char *esc = topic ? g_markup_escape_text(topic, -1) : NULL; markup = g_strdup_printf("%s%s%s", purple_conversation_get_title(conv), - topic ? "\n" : "", + esc ? "\n" : "", pidgin_get_dim_grey_string(gtkconv->infopane), - topic ? topic : ""); + esc ? esc : ""); + g_free(esc); } gtk_list_store_set(gtkconv->infopane_model, &(gtkconv->infopane_iter), CONV_TEXT_COLUMN, markup, -1);