diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-08-07 02:02:07 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-08-07 02:02:07 +0000 |
commit | bfa54f92fa14defbb276e57ad7508bd68318f592 (patch) | |
tree | dc5e8e490475c3a6974d9ecccfd564f91a93f86f /protocols/FacebookRM/src/process.cpp | |
parent | 523df843b25d660da107d6e954fa2127bf02e082 (diff) |
Facebook: Fix sending "𞉀" in message
- Remove "special_expressions_decode" from various wrong places (hopefully it won't cause any new problems)
- Rename it to "html_entities_decode"
git-svn-id: http://svn.miranda-ng.org/main/trunk@10104 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/process.cpp')
-rw-r--r-- | protocols/FacebookRM/src/process.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index a0a7980da7..dfc9225151 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -1021,12 +1021,12 @@ void FacebookProto::ProcessFeeds(void* data) facebook_newsfeed* nf = new facebook_newsfeed; nf->title = utils::text::trim( - utils::text::special_expressions_decode( + utils::text::html_entities_decode( utils::text::remove_html(post_header))); nf->user_id = utils::text::source_get_value(&post_header, 2, "user.php?id=", "&"); - nf->link = utils::text::special_expressions_decode(post_link); + nf->link = utils::text::html_entities_decode(post_link); // Check if we don't want to show ads posts bool filtered = filterAds && (nf->link.find("/about/ads") != std::string::npos @@ -1034,7 +1034,7 @@ void FacebookProto::ProcessFeeds(void* data) || post.find("href=\"/about/ads\"") != std::string::npos); nf->text = utils::text::trim( - utils::text::special_expressions_decode( + utils::text::html_entities_decode( utils::text::remove_html( utils::text::edit_html(post_message)))); @@ -1116,7 +1116,7 @@ void FacebookProto::ProcessPages(void*) start = content.find("<li", start + 1); std::string id = utils::text::source_get_value(&item, 3, "data-gt=", "bmid":"", """); - std::string title = utils::text::special_expressions_decode(utils::text::slashu_to_utf8(utils::text::source_get_value(&item, 3, "data-gt=", "title=\"", "\""))); + std::string title = utils::text::slashu_to_utf8(utils::text::source_get_value(&item, 3, "data-gt=", "title=\"", "\"")); std::string href = utils::text::source_get_value(&item, 3, "data-gt=", "href=\"", "\""); // Ignore pages channel @@ -1186,10 +1186,10 @@ void FacebookProto::SearchAckThread(void *targ) continue; ptrT tid( mir_utf8decodeT(id.c_str())); - ptrT tname( mir_utf8decodeT(utils::text::special_expressions_decode(name).c_str())); - ptrT tsurname( mir_utf8decodeT(utils::text::special_expressions_decode(surname).c_str())); - ptrT tnick( mir_utf8decodeT(utils::text::special_expressions_decode(nick).c_str())); - ptrT tcommon( mir_utf8decodeT(utils::text::special_expressions_decode(common).c_str())); + ptrT tname( mir_utf8decodeT(utils::text::html_entities_decode(name).c_str())); + ptrT tsurname( mir_utf8decodeT(utils::text::html_entities_decode(surname).c_str())); + ptrT tnick( mir_utf8decodeT(utils::text::html_entities_decode(nick).c_str())); + ptrT tcommon( mir_utf8decodeT(utils::text::html_entities_decode(common).c_str())); PROTOSEARCHRESULT isr = {0}; isr.cbSize = sizeof(isr); |