diff options
author | eionrobb <eionrobb@8ca6c67d-4297-256d-f884-781da6d5760b> | 2014-04-20 01:57:03 +0400 |
---|---|---|
committer | eionrobb <eionrobb@8ca6c67d-4297-256d-f884-781da6d5760b> | 2014-04-20 01:57:03 +0400 |
commit | 46483b4579dda843ad5fe8b76b7c31d4f6729ae9 (patch) | |
tree | d1cf6a2aa8784ba8ed7761c1f39a0928b1a92062 | |
parent | 75a832ac664edb706a0b33431bd389eb085dbf5f (diff) |
Fix for sending and receiving of blocks of text in angle-brackets (like <this>)
-rw-r--r-- | steam-mobile/libsteam.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/steam-mobile/libsteam.c b/steam-mobile/libsteam.c index 3d0bd81..5c6253d 100644 --- a/steam-mobile/libsteam.c +++ b/steam-mobile/libsteam.c @@ -520,7 +520,7 @@ steam_poll_cb(SteamAccount *sa, JsonObject *obj, gpointer user_data) } else {
text = g_strdup(json_object_get_string_member(message, "text"));
}
- html = purple_strdup_withhtml(text);
+ html = purple_markup_escape_text(text, -1);
from = json_object_get_string_member(message, "steamid_from");
if (g_str_has_prefix(type, "my_")) {
PurpleConversation *conv = purple_find_conversation_with_account(PURPLE_CONV_TYPE_IM, from, sa->account);
@@ -1303,7 +1303,7 @@ static gint steam_send_im(PurpleConnection *pc, const gchar *who, const gchar *m g_string_append_printf(post, "access_token=%s&", purple_url_encode(steam_account_get_access_token(sa)));
g_string_append_printf(post, "umqid=%s&", purple_url_encode(sa->umqid));
- stripped = purple_markup_strip_html(msg);
+ stripped = purple_unescape_html(msg);
g_string_append(post, "type=saytext&");
g_string_append_printf(post, "text=%s&", purple_url_encode(stripped));
g_string_append_printf(post, "steamid_dst=%s", who);
|