# HG changeset patch # User Sean Egan # Date 1082211123 0 # Node ID 69e30736b9efaa83cf37a7488e5cbb435b22fca5 # Parent cc2ce209cc4617b15025dcf13b292d9864819458 [gaim-migrate @ 9431] Have MSN unescape HTML entities. committer: Tailor Script diff -r cc2ce209cc46 -r 69e30736b9ef src/protocols/msn/utils.c --- a/src/protocols/msn/utils.c Sat Apr 17 13:58:29 2004 +0000 +++ b/src/protocols/msn/utils.c Sat Apr 17 14:12:03 2004 +0000 @@ -258,8 +258,21 @@ c++; } - } - else + } else if (*c == '&') { + if (!g_ascii_strncasecmp(c, "<", 4)) { + msg[retcount++] = '<'; + c += 4; + } else if (!g_ascii_strncasecmp(c, ">", 4)) { + msg[retcount++] = '>'; + c += 4; + } else if (!g_ascii_strncasecmp(c, """, 6)) { + msg[retcount++] = '"'; + c += 6; + } else if (!g_ascii_strncasecmp(c, "&", 5)) { + msg[retcount++] = '&'; + c += 5; + } + } else msg[retcount++] = *c++; }