Mercurial > pidgin
changeset 28026:83a3b3b5976a
Oh, I guess we should escape this when printing to the debug window.
We do this same thing for outgoing messages
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 20 Aug 2009 06:54:44 +0000 |
parents | c9e760d350b8 |
children | 69793158765c |
files | libpurple/protocols/yahoo/util.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/util.c Thu Aug 20 06:26:21 2009 +0000 +++ b/libpurple/protocols/yahoo/util.c Thu Aug 20 06:54:44 2009 +0000 @@ -513,7 +513,7 @@ int i, j; gboolean no_more_gt_brackets = FALSE; const char *match; - gchar *xmlstr1, *xmlstr2; + gchar *xmlstr1, *xmlstr2, *esc; x_len = strlen(x); html = xmlnode_new("html"); @@ -660,7 +660,10 @@ xmlstr2 = g_strndup(xmlstr1 + 6, strlen(xmlstr1) - 13); g_free(xmlstr1); - purple_debug_misc("yahoo", "yahoo_codes_to_html(%s)=%s\n", x, xmlstr2); + esc = g_strescape(x, NULL); + purple_debug_misc("yahoo", "yahoo_codes_to_html(%s)=%s\n", esc, xmlstr2); + g_free(esc); + return xmlstr2; }