diff options
author | George Hazan <ghazan@miranda.im> | 2019-01-08 16:23:24 +0200 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-01-08 16:23:24 +0200 |
commit | 2b34e7d95cdcc131075ce057bd6badc13d9908c2 (patch) | |
tree | 2f171553b2b455c79fa82e15522bd3a8cf0430a6 | |
parent | 755fdc3506db0341907c296bf91f99d5c986d2ad (diff) |
fix for token substitution in the first RAPI call
-rw-r--r-- | protocols/Icq10/src/http.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/protocols/Icq10/src/http.cpp b/protocols/Icq10/src/http.cpp index 68424165b2..034bc47a3c 100644 --- a/protocols/Icq10/src/http.cpp +++ b/protocols/Icq10/src/http.cpp @@ -122,6 +122,13 @@ void CIcqProto::ExecuteRequest(AsyncHttpRequest *pReq) delete pReq; return; } + + replaceStr(pReq->pData, nullptr); + + CMStringA szNewToken(FORMAT, "\"authToken\":\"%s\"", m_szRToken.c_str()); + pReq->m_szParam.Replace("\"authToken\":\"\"", szNewToken); + pReq->dataLength = pReq->m_szParam.GetLength(); + pReq->pData = mir_strdup(pReq->m_szParam); } } |