summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-06-13 21:47:51 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-06-13 21:47:51 +0300
commit9bd700bc335fb2b5864fdbdcda14862188d13ddb (patch)
treeb50d2bebd66641c98f17023ff4916c775973d743 /protocols
parentf1d38c7cd246ab1b163bd4a0d70471ad452a331b (diff)
minor fix for Skype login
Diffstat (limited to 'protocols')
-rw-r--r--protocols/SkypeWeb/src/skype_oauth.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_oauth.cpp b/protocols/SkypeWeb/src/skype_oauth.cpp
index 17d6455a82..1d82cac793 100644
--- a/protocols/SkypeWeb/src/skype_oauth.cpp
+++ b/protocols/SkypeWeb/src/skype_oauth.cpp
@@ -68,13 +68,13 @@ void CSkypeProto::OnOAuthAuthorize(const NETLIBHTTPREQUEST *response)
std::smatch match;
std::string content = response->pData;
- regex = "<input type=\"hidden\" name=\"t\" id=\"t\" value=\"(.+?)\">";
+ regex = "<input type=\"hidden\" name=\"(.+?)\" id=\"(.+?)\" value=\"(.+?)\">";
if (!std::regex_search(content, match, regex)) {
ProtoBroadcastAck(NULL, ACKTYPE_LOGIN, ACKRESULT_FAILED, NULL, LOGIN_ERROR_UNKNOWN);
SetStatus(ID_STATUS_OFFLINE);
return;
}
- std::string t = match[1];
+ std::string t = match[3];
PushRequest(new OAuthRequest(t.c_str()), &CSkypeProto::OnOAuthEnd);
}