Mercurial > pidgin
diff src/protocols/msn/utils.c @ 8678:69e30736b9ef
[gaim-migrate @ 9431]
Have MSN unescape HTML entities.
committer: Tailor Script <tailor@pidgin.im>
| author | Sean Egan <seanegan@gmail.com> |
|---|---|
| date | Sat, 17 Apr 2004 14:12:03 +0000 |
| parents | 1e211dde3cae |
| children | 0eb5161ef333 |
line wrap: on
line diff
--- 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++; }
