changeset 9273:227d3d6c6565

[gaim-migrate @ 10076] this fixes a logging issue with apostrophes committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sat, 12 Jun 2004 21:48:49 +0000
parents ac4480944fc3
children f5c08be60098
files src/util.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/util.c	Sat Jun 12 18:36:05 2004 +0000
+++ b/src/util.c	Sat Jun 12 21:48:49 2004 +0000
@@ -1332,6 +1332,9 @@
 			visible = TRUE;
 		}
 
+		/* XXX: This sucks.  We need to be un-escaping all entities, which
+		 * includes these, as well as the &#num; ones */
+
 		if (str2[i] == '&' && strncasecmp(str2 + i, "&quot;", 6) == 0)
 		{
 		    str2[j++] = '\"';
@@ -1360,6 +1363,13 @@
 			continue;
 		}
 
+		if (str2[i] == '&' && strncasecmp(str2 + i, "&apos;", 6) == 0)
+		{
+			str2[j++] = '\'';
+			i = i + 5;
+			continue;
+		}
+
 		if (visible)
 			str2[j++] = g_ascii_isspace(str2[i])? ' ': str2[i];
 	}