diff options
author | Robert Pösel <robyer@seznam.cz> | 2016-10-04 04:07:58 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2016-10-04 04:07:58 +0000 |
commit | a0d490df77bd12fcc1d645b10bb2f7855e971d2e (patch) | |
tree | 992f344397c553200d7df1c0adfab8f7d92d142a /protocols/FacebookRM/src/process.cpp | |
parent | dde6b53e4487b85be6194126698a8cffbe95651f (diff) |
Facebook: Fix searching by id (now for real); version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@17349 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/process.cpp')
-rw-r--r-- | protocols/FacebookRM/src/process.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index d67fedddbf..5816cb66f3 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -1373,8 +1373,11 @@ void FacebookProto::SearchIdAckThread(void *targ) if (resp.code == HTTP_CODE_FOUND && resp.headers.find("Location") != resp.headers.end()) { search = utils::text::source_get_value(&resp.headers["Location"], 2, FACEBOOK_SERVER_MBASIC"/", "_rdr"); - HttpRequest *request = new ProfileRequest(facy.mbasicWorks, search.c_str()); - http::response resp = facy.sendRequest(request); + // Use only valid username redirects + if (search.find("home.php") == std::string::npos) { + HttpRequest *request = new ProfileRequest(facy.mbasicWorks, search.c_str()); + resp = facy.sendRequest(request); + } } if (resp.code == HTTP_CODE_OK) |