summaryrefslogtreecommitdiff
path: root/protocols/MSN/src/msn_auth.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-07 13:25:07 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-07 13:25:07 +0300
commite6edc1ba036f66f07878779d4d7a973c80d30efb (patch)
treec310656e2e9aaa4811e264ef2f811e79b5f582e4 /protocols/MSN/src/msn_auth.cpp
parenta9fbe9a81a6777b4b358d93116ee15f9f07dfb6e (diff)
hopefully last custom UrlDecode implementation removed
Diffstat (limited to 'protocols/MSN/src/msn_auth.cpp')
-rw-r--r--protocols/MSN/src/msn_auth.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/protocols/MSN/src/msn_auth.cpp b/protocols/MSN/src/msn_auth.cpp
index 02da53e8c9..39d1d0cc98 100644
--- a/protocols/MSN/src/msn_auth.cpp
+++ b/protocols/MSN/src/msn_auth.cpp
@@ -1104,7 +1104,6 @@ int CMsnProto::MSN_AuthOAuth(void)
*pEnd = 0;
pAccessToken += 13;
- UrlDecode(pAccessToken);
/* Extract refresh token */
if (pRefreshToken && (pEnd = strchr(pRefreshToken + 14, '&'))) {
@@ -1122,7 +1121,7 @@ int CMsnProto::MSN_AuthOAuth(void)
authTokenExpiretime += atoi(pExpires);
}
else authTokenExpiretime += 86400;
- authSkypeComToken.SetToken(pAccessToken, authTokenExpiretime);
+ authSkypeComToken.SetToken(mir_urlDecode(pAccessToken), authTokenExpiretime);
/* Copy auth Cookies to class for other web requests like contact list fetching to avoid ActiveSync */
if (nlhrReply) {
@@ -1172,8 +1171,8 @@ int CMsnProto::MSN_AuthOAuth(void)
(pEnd = strchr(pMappingContainer + 20, '"'))) {
*pEnd = 0;
pMappingContainer += 20;
- UrlDecode(pMappingContainer);
- replaceStr(authUIC, pMappingContainer);
+
+ replaceStr(authUIC, mir_urlDecode(pMappingContainer));
replaceStr(authUser, MyOptions.szEmail);
authMethod = retVal = 2;
}