# HG changeset patch # User Ka-Hing Cheung # Date 1185065905 0 # Node ID c7a5cd17b045ec25a3a65a1eef6aca771e5b9a03 # Parent cf7297803a73c981723ca4cfa08484597ed33177 re-escapes the entities that was unescaped by purple_markup_strip_html() Fixes #1269 diff -r cf7297803a73 -r c7a5cd17b045 libpurple/protocols/oscar/oscar.c --- a/libpurple/protocols/oscar/oscar.c Sat Jul 21 05:53:05 2007 +0000 +++ b/libpurple/protocols/oscar/oscar.c Sun Jul 22 00:58:25 2007 +0000 @@ -4328,10 +4328,15 @@ tmp2 = purple_markup_strip_html(tmp1); g_free(tmp1); - - tmp1 = purple_strdup_withhtml(tmp2); + + /* re-escape the entities */ + tmp1 = g_markup_escape_text(tmp2, -1); g_free(tmp2); + tmp2 = purple_strdup_withhtml(tmp1); + g_free(tmp1); + tmp1 = tmp2; + purple_plugin_oscar_convert_to_best_encoding(gc, name, tmp1, (char **)&args.msg, &args.msglen, &args.charset, &args.charsubset); purple_debug_info("oscar", "Sending %s as %s because the original was too long.",