From 106fb18ea726033237cc1afd7084dde30de788a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 17 Apr 2016 11:13:12 +0000 Subject: Facebook: Fix for getting some other login errors E.g. "You entered old password." git-svn-id: http://svn.miranda-ng.org/main/trunk@16683 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/communication.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp index 3e2da643fa..179d9ee273 100644 --- a/protocols/FacebookRM/src/communication.cpp +++ b/protocols/FacebookRM/src/communication.cpp @@ -933,6 +933,8 @@ bool facebook_client::login(const char *username, const char *password) // Get and notify error message std::string error = utils::text::slashu_to_utf8(utils::text::source_get_value(&resp.data, 3, "[\"LoginFormError\"", "\"__html\":\"", "\"}")); + if (error.empty()) + error = utils::text::slashu_to_utf8(utils::text::source_get_value(&resp.data, 3, "role=\"alert\"", ">", "", "