diff options
author | ElzorFox <elzorfox@ya.ru> | 2021-10-06 10:16:02 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2021-10-06 10:16:02 +0500 |
commit | 55574aec3a0d27a1c80b96aacb3c70dc9c7acadd (patch) | |
tree | d86b3c35bcc068d0d12a648a21d7f12ad7803360 | |
parent | dfa6fb6ace3997ae4375268ff0850fc2d07848eb (diff) |
VKontakte: fix run captcha form
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 2f7634e9a2..ccfe86e283 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -417,6 +417,9 @@ bool CVkProto::AutoFillForm(char *pBody, CMStringA &szAction, CMStringA& szResul value = (char*)T2Utf(ptrW(GetUserStoredPassword()));
else if (name == "captcha_key") {
char *pCaptchaBeg = strstr(pFormBeg, "<img id=\"captcha\"");
+ if (!pCaptchaBeg)
+ pCaptchaBeg = strstr(pFormBeg, "<img src=\"/captcha.php");
+
if (pCaptchaBeg)
if (!RunCaptchaForm(getAttr(pCaptchaBeg, "src"), value))
return false;
|