diff options
author | George Hazan <ghazan@miranda.im> | 2019-12-29 17:48:10 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-12-29 17:48:10 +0300 |
commit | 8e6a2d89add33d2b3cec4820ffae395d3cb042db (patch) | |
tree | 4f552f68924f420521a8e74be9c023245d17ade5 | |
parent | 58c6693dd4ef206b357d137ed38e0ec5ea3d94e7 (diff) |
fixes #2167 (Facebook: strip secret info from logs)
-rw-r--r-- | protocols/Facebook/src/http.cpp | 6 | ||||
-rw-r--r-- | protocols/Facebook/src/server.cpp | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/protocols/Facebook/src/http.cpp b/protocols/Facebook/src/http.cpp index 537dc8b3d8..07e0e1a2b0 100644 --- a/protocols/Facebook/src/http.cpp +++ b/protocols/Facebook/src/http.cpp @@ -115,12 +115,6 @@ AsyncHttpRequest* FacebookProto::CreateRequest(const char *szName, const char *s pReq->AddHeader("Authorization", "OAuth " + m_szAuthToken); pReq->AddHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8"); - - //unsigned int id; - //Utils_GetRandom(&id, sizeof(id)); - //id &= ~0x80000000; - //pReq << INT_PARAM("queryid", id); - return pReq; } diff --git a/protocols/Facebook/src/server.cpp b/protocols/Facebook/src/server.cpp index d24435c3fb..63866395d0 100644 --- a/protocols/Facebook/src/server.cpp +++ b/protocols/Facebook/src/server.cpp @@ -92,6 +92,7 @@ void FacebookProto::OnLoggedOut() int FacebookProto::RefreshContacts() { auto *pReq = CreateRequestGQL(FB_API_QUERY_CONTACTS); + pReq->flags |= NLHRF_NODUMPSEND; pReq << CHAR_PARAM("query_params", "{\"0\":[\"user\"],\"1\":\"" FB_API_CONTACTS_COUNT "\"}"); pReq->CalcSig(); @@ -160,6 +161,7 @@ int FacebookProto::RefreshContacts() bool FacebookProto::RefreshToken() { auto *pReq = CreateRequest("authenticate", "auth.login"); + pReq->flags |= NLHRF_NODUMP; pReq->m_szUrl = FB_API_URL_AUTH; pReq << CHAR_PARAM("email", getMStringA(DBKEY_LOGIN)); pReq << CHAR_PARAM("password", getMStringA(DBKEY_PASS)); |