summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-08-22 15:20:42 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-08-22 15:20:42 +0000
commit3b30be9b1a8a62748c43357a657574cdaf3ddd0a (patch)
tree83b11d1017049b5f9b05733974e79b8aa9014cb5 /protocols/VKontakte/src
parentef02745dbca762f9710a8a33472d6f81de606c39 (diff)
missing urlencode inserted
git-svn-id: http://svn.miranda-ng.org/main/trunk@10299 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src')
-rw-r--r--protocols/VKontakte/src/vk_proto.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_proto.cpp b/protocols/VKontakte/src/vk_proto.cpp
index 9adce546a5..033eb42dbb 100644
--- a/protocols/VKontakte/src/vk_proto.cpp
+++ b/protocols/VKontakte/src/vk_proto.cpp
@@ -178,9 +178,9 @@ int CVkProto::SendMsg(MCONTACT hContact, int flags, const char *msg)
ULONG msgId = ::InterlockedIncrement(&m_msgId);
AsyncHttpRequest *pReq = new AsyncHttpRequest(this, REQUEST_POST, "/method/messages.send.json", true, &CVkProto::OnSendMessage)
<< INT_PARAM("type", 0) << INT_PARAM("uid", userID);
- pReq->AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
+ pReq->AddHeader("Content-Type", "application/x-www-form-urlencoded");
- CMStringA szBody(FORMAT, "message=%s", szMsg);
+ CMStringA szBody(FORMAT, "message=%s", ptrA(mir_urlEncode(szMsg)));
pReq->pData = mir_strdup(szBody);
pReq->dataLength = szBody.GetLength();
pReq->pUserInfo = new CVkSendMsgParam(hContact, msgId);