[gaim-migrate @ 17589]

Thu, 26 Oct 2006 23:07:28 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Thu, 26 Oct 2006 23:07:28 +0000
changeset 14884
b84a44f33190
parent 14883
4b555e4c09f5
child 14885
bbaf969bec1a

[gaim-migrate @ 17589]
glib replaces "'" with "&apos;" when escaping markup. Apparently some protocols
(Yahoo, AIM) have issues with that. So replace "&apos;" back with "'".

console/gntconv.c file | annotate | diff | comparison | revisions
--- a/console/gntconv.c	Thu Oct 26 15:55:31 2006 +0000
+++ b/console/gntconv.c	Thu Oct 26 23:07:28 2006 +0000
@@ -105,6 +105,9 @@
 		else
 		{
 			char *escape = g_markup_escape_text(text, -1);
+			char *apos = gaim_strreplace(escape, "&apos;", "'");
+			g_free(escape);
+			escape = apos;
 			switch (gaim_conversation_get_type(ggconv->active_conv))
 			{
 				case GAIM_CONV_TYPE_IM:

mercurial