summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/process.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/FacebookRM/src/process.cpp')
-rw-r--r--protocols/FacebookRM/src/process.cpp7
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)