summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_thread.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-07 12:31:01 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-07 12:31:01 +0000
commitfc4ca4545540ba1f35e4e7ad01646edf11199b4e (patch)
treef5725c89e6674b73bed183af7530350ad25ddf65 /protocols/VKontakte/src/vk_thread.cpp
parent2e1ccca56dcd321148ac0e233dc88e553a951d0b (diff)
ability to set the alternative VK domain
git-svn-id: http://svn.miranda-ng.org/main/trunk@7531 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_thread.cpp')
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp
index 088201e450..8c624d95d8 100644
--- a/protocols/VKontakte/src/vk_thread.cpp
+++ b/protocols/VKontakte/src/vk_thread.cpp
@@ -98,7 +98,8 @@ void CVkProto::OnOAuthAuthorize(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq
if (reply->resultCode == 302) { // manual redirect
LPCSTR pszLocation = findHeader(reply, "Location");
if (pszLocation) {
- if ( !_strnicmp(pszLocation, VK_REDIRECT_URL, sizeof(VK_REDIRECT_URL)-1)) {
+ CMStringA redirectUrl; redirectUrl.Format("http://api.%s/blank.html", m_baseDomain);
+ if (!_strnicmp(pszLocation, redirectUrl, redirectUrl.GetLength())) {
m_szAccessToken = NULL;
LPCSTR p = strstr(pszLocation, VK_TOKEN_BEG);
if (p) {