pidgin: 6e9c2cd3: Oh, I guess we should escape this when p...

markdoliner at pidgin.im markdoliner at pidgin.im
Thu Aug 20 03:00:42 EDT 2009


-----------------------------------------------------------------
Revision: 6e9c2cd30f25c97b9e61e1f5a5080612a13a4da1
Ancestor: 1d76dce13d092623029537d246993ba13334fc0e
Author: markdoliner at pidgin.im
Date: 2009-08-20T06:54:44
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/6e9c2cd30f25c97b9e61e1f5a5080612a13a4da1

Modified files:
        libpurple/protocols/yahoo/util.c

ChangeLog: 

Oh, I guess we should escape this when printing to the debug window.
We do this same thing for outgoing messages

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/util.c	bf5b19ca42fdf5f2c96840c18389917aec47e23a
+++ libpurple/protocols/yahoo/util.c	98a981be45111ce57e1faa7edf8d1a6faf7e9ed9
@@ -513,7 +513,7 @@ char *yahoo_codes_to_html(const char *x)
 	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 @@ char *yahoo_codes_to_html(const char *x)
 	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;
 }
 


More information about the Commits mailing list