changeset 14822:ac0ce6064000

[gaim-migrate @ 17589] glib replaces "'" with "&apos;" when escaping markup. Apparently some protocols (Yahoo, AIM) have issues with that. So replace "&apos;" back with "'". committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Thu, 26 Oct 2006 23:07:28 +0000
parents 5e5b34ac509a
children 10244943bbc9
files console/gntconv.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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: