diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-05-05 13:47:22 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-05-05 13:47:22 +0000 |
commit | 62c035c1dfc9ab599ab5403869022ebbc7910f66 (patch) | |
tree | 0fecee62e44724dab6ecb01fa08f59dd538923c8 /protocols/VKontakte | |
parent | 81e0419a0c18dd5a07a68ecac2e1fc6058bcea00 (diff) |
VKontakte: fix for ‘%’ in notification text
git-svn-id: http://svn.miranda-ng.org/main/trunk@13441 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte')
-rw-r--r-- | protocols/VKontakte/src/vk_feed.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_feed.cpp b/protocols/VKontakte/src/vk_feed.cpp index fd2de60bf3..78d1d71d04 100644 --- a/protocols/VKontakte/src/vk_feed.cpp +++ b/protocols/VKontakte/src/vk_feed.cpp @@ -137,7 +137,6 @@ void CVkProto::CreateVkUserInfoList(OBJLIST<CVkUserInfo> &vkUsers, JSONNODE *pRe CVKNewsItem* CVkProto::GetVkNewsItem(JSONNODE *pItem, OBJLIST<CVkUserInfo> &vkUsers, bool isRepost)
{
- //debugLogA("CVkProto::GetVkNewsItem");
bool bPostLink = true;
CVKNewsItem *vkNewsItem = new CVKNewsItem();
if (pItem == NULL)
@@ -276,6 +275,7 @@ CMString CVkProto::GetVkFeedback(JSONNODE *pFeedback, VKObjType vkFeedbackType, if (iUserId) {
vkUser = GetVkUserInfo(iUserId, vkUsers);
CMString tszText = json_as_CMString(json_get(pFeedback, "text"));
+ tszText.Replace(_T("%"), _T("%%"));
tszRes.AppendFormat(tszFormat, SetBBCString(vkUser->m_tszUserNick.GetBuffer(), m_iBBCForNews, vkbbcUrl, vkUser->m_tszLink.GetBuffer()), ClearFormatNick(tszText).GetBuffer());
}
|