From 2b409bafd5f1310481d1211f8267028078ac283b Mon Sep 17 00:00:00 2001 From: ElzorFox Date: Sat, 2 Sep 2017 12:55:49 +0500 Subject: VKontakte: fix parsing telephone digits in capcha --- protocols/VKontakte/src/misc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/VKontakte') diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 088a8b4e71..5232e13b85 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -442,9 +442,9 @@ bool CVkProto::AutoFillForm(char *pBody, CMStringA &szAction, CMStringA& szResul char szPrefixTel[10], szSufixTel[10]; CMStringW wszTitle; char *pPhonePref = strstr(pFormBeg, ""); - if (pPhonePref && sscanf(pPhonePref, "%s", szPrefixTel) == 1) { + if (pPhonePref && sscanf(pPhonePref, "%[^<]", szPrefixTel) == 1) { pPhonePref = strstr(pPhonePref + 1, " "); - if (pPhonePref && sscanf(pPhonePref, " %s", szSufixTel) == 1) { + if (pPhonePref && sscanf(pPhonePref, " %[^<]", szSufixTel) == 1) { wszTitle.Format(TranslateT("Enter the missing digits between %s and %s of the phone number linked to your account"), ptrW(mir_a2u(szPrefixTel)), ptrW(mir_a2u(szSufixTel))); MessageBoxW(NULL, wszTitle, TranslateT("Attention!"), MB_ICONWARNING | MB_OK); } -- cgit v1.2.3