# HG changeset patch # User Nathan Walp # Date 1087076929 0 # Node ID 227d3d6c6565fbbe66193fd9365b45034e344115 # Parent ac4480944fc361ddb4340e852f8966f4bcddfaa5 [gaim-migrate @ 10076] this fixes a logging issue with apostrophes committer: Tailor Script diff -r ac4480944fc3 -r 227d3d6c6565 src/util.c --- 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, """, 6) == 0) { str2[j++] = '\"'; @@ -1360,6 +1363,13 @@ continue; } + if (str2[i] == '&' && strncasecmp(str2 + i, "'", 6) == 0) + { + str2[j++] = '\''; + i = i + 5; + continue; + } + if (visible) str2[j++] = g_ascii_isspace(str2[i])? ' ': str2[i]; }