summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_captcha.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-09-10 08:35:43 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-09-10 08:35:43 +0000
commitcb131f47fe09080f2f13eaabfb8398c61c9a073d (patch)
tree25b32c3c1e00ec4f39040f633b992434e712fd7d /protocols/VKontakte/src/vk_captcha.cpp
parentf0cdc6fa307ea9b3dcbe44a93f4a0955b2e34b98 (diff)
VKontakte: fix for 403 error
git-svn-id: http://svn.miranda-ng.org/main/trunk@10418 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_captcha.cpp')
-rw-r--r--protocols/VKontakte/src/vk_captcha.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_captcha.cpp b/protocols/VKontakte/src/vk_captcha.cpp
index 20981ae51d..1637ba608d 100644
--- a/protocols/VKontakte/src/vk_captcha.cpp
+++ b/protocols/VKontakte/src/vk_captcha.cpp
@@ -152,8 +152,9 @@ bool CVkProto::ApplyCaptcha(AsyncHttpRequest *pReq, JSONNODE *pErrorNode)
if (!RunCaptchaForm(szUrl, userReply))
return false;
- pReq->m_szUrl = pReq->szUrl;
- pReq->m_szUrl.AppendFormat("&captcha_sid=%s&captcha_key=%s", szSid, userReply.GetString());
+// pReq->m_szUrl = pReq->szUrl;
+// pReq->m_szUrl.AppendFormat("&captcha_sid=%s&captcha_key=%s", szSid, userReply.GetString());
+ pReq << CHAR_PARAM("captcha_sid", szSid) << CHAR_PARAM("captcha_key", userReply.GetString());
pReq->bNeedsRestart = true;
return true;
}