diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-11-09 21:49:32 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-11-09 21:49:32 +0000 |
commit | 8ea94a560b5c37003f4fffa7ff4be86eab792fee (patch) | |
tree | 4a422da560381f1f673d2a19e7ef1707442fcc66 /protocols/SkypeWeb/src/skype_messages.cpp | |
parent | b0767875612ca56f4b5236064772b14d33bf41aa (diff) |
SkypeWeb: Strip html from messages only when type is "RichText" (fixes #1085)
git-svn-id: http://svn.miranda-ng.org/main/trunk@15705 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_messages.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_messages.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/SkypeWeb/src/skype_messages.cpp b/protocols/SkypeWeb/src/skype_messages.cpp index 91e61d0c43..799109e89e 100644 --- a/protocols/SkypeWeb/src/skype_messages.cpp +++ b/protocols/SkypeWeb/src/skype_messages.cpp @@ -162,7 +162,7 @@ void CSkypeProto::OnPrivateMessageEvent(const JSONNode &node) std::string strMessageType = node["messagetype"].as_string();
std::string strContent = node["content"].as_string();
- ptrA szClearedContent(RemoveHtml(strContent.c_str()));
+ ptrA szClearedContent(strMessageType == "RichText" ? RemoveHtml(strContent.c_str()) : mir_strdup(strContent.c_str()));
bool bEdited = node["skypeeditedid"];
time_t timestamp = IsoToUnixTime(node["composetime"].as_string().c_str());
|