From 2b34e7d95cdcc131075ce057bd6badc13d9908c2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 8 Jan 2019 16:23:24 +0200 Subject: fix for token substitution in the first RAPI call --- protocols/Icq10/src/http.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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); } } -- cgit v1.2.3