pidgin: cb951ec8: Escape buddy notes when adding them to t...
nosnilmot at pidgin.im
nosnilmot at pidgin.im
Fri Feb 26 09:20:45 EST 2010
-----------------------------------------------------------------
Revision: cb951ec870fc6aba8a3f45fb58514b55babec109
Ancestor: f1d7f3b74c2997f762afd2462863cb722a46379e
Author: nosnilmot at pidgin.im
Date: 2010-02-26T14:14:43
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/cb951ec870fc6aba8a3f45fb58514b55babec109
Modified files:
pidgin/plugins/gtkbuddynote.c
ChangeLog:
Escape buddy notes when adding them to the tooltip so notes can't totally
screw up the tooltip
-------------- next part --------------
============================================================
--- pidgin/plugins/gtkbuddynote.c 21f123d90ab88e7c9abcee059d656b022a57cc41
+++ pidgin/plugins/gtkbuddynote.c 63bee0224ab8cc6f937915c93c21e298091027f1
@@ -31,11 +31,13 @@ append_to_tooltip(PurpleBlistNode *node,
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, _("\n<b>Buddy Note</b>: %s"),
- tmp);
- g_free(tmp);
+ esc);
+ g_free(esc);
}
}
}
More information about the Commits
mailing list