# HG changeset patch # User Stu Tomlinson # Date 1267193683 0 # Node ID fddded5ee51433012c4a74a3a96e9d976e3d92cb # Parent 1c6c2f5ecf530a075cc489310ef9b85beb6369d2 Escape buddy notes when adding them to the tooltip so notes can't totally screw up the tooltip diff -r 1c6c2f5ecf53 -r fddded5ee514 pidgin/plugins/gtkbuddynote.c --- a/pidgin/plugins/gtkbuddynote.c Thu Feb 25 22:47:28 2010 +0000 +++ b/pidgin/plugins/gtkbuddynote.c Fri Feb 26 14:14:43 2010 +0000 @@ -31,11 +31,13 @@ const gchar *note = purple_blist_node_get_string(node, "notes"); if ((note != NULL) && (*note != '\0')) { - char *tmp; + char *tmp, *esc; purple_markup_html_to_xhtml(note, NULL, &tmp); + esc = g_markup_escape_text(tmp, -1); + g_free(tmp); g_string_append_printf(text, _("\nBuddy Note: %s"), - tmp); - g_free(tmp); + esc); + g_free(esc); } } }