Sat, 12 Jun 2004 21:48:49 +0000
[gaim-migrate @ 10076]
this fixes a logging issue with apostrophes
| src/util.c | file | annotate | diff | comparison | revisions |
--- 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]; }