diff options
author | Robert Pösel <robyer@seznam.cz> | 2017-03-23 20:37:38 +0100 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2017-03-23 20:37:38 +0100 |
commit | 43ba08f91ea6e7a32e4a11418c434e1ea36314c8 (patch) | |
tree | 4ac0e977da30678716ef0841ae989d4e244e1be3 /protocols/MSN/src/msn_auth.cpp | |
parent | 61fde2711609ea8a2f1005f21d9ec4502044bce1 (diff) |
MSN: Raised password length limit to 99 chars (fixes #658)
It might be rewritten better to remove any limit though.
Diffstat (limited to 'protocols/MSN/src/msn_auth.cpp')
-rw-r--r-- | protocols/MSN/src/msn_auth.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/MSN/src/msn_auth.cpp b/protocols/MSN/src/msn_auth.cpp index e16cdd38e0..4cc45d04a6 100644 --- a/protocols/MSN/src/msn_auth.cpp +++ b/protocols/MSN/src/msn_auth.cpp @@ -354,7 +354,7 @@ int CMsnProto::MSN_GetPassportAuth(void) if (db_get_static(NULL, m_szModuleName, "Password", szPassword, sizeof(szPassword)))
return 0;
- szPassword[16] = 0;
+ szPassword[99] = 0;
time_t ts = time(NULL);
@@ -1009,7 +1009,7 @@ bool CMsnProto::parseLoginPage(char *pszHTML, NETLIBHTTPREQUEST *nlhr, CMStringA char szPassword[100];
if (db_get_static(NULL, m_szModuleName, "Password", szPassword, sizeof(szPassword)))
return false;
- szPassword[16] = 0;
+ szPassword[99] = 0;
post->Format("PPFT=%s&login=%s&passwd=%s", ptrA(mir_urlEncode(pPPFT)),
ptrA(mir_urlEncode(MyOptions.szEmail)), ptrA(mir_urlEncode(szPassword)));
|