From 76c0c4aa6a34e6d9299ba6a7cf6b9db428fde619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Wed, 17 Jul 2013 13:08:09 +0000 Subject: Facebook: - Fixed searching users at some circumstances and by e-mail - Don't allow to add contact with not numeric ID git-svn-id: http://svn.miranda-ng.org/main/trunk@5396 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/proto.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'protocols/FacebookRM/src/proto.cpp') diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp index 224a9768f3..793d99b8fd 100644 --- a/protocols/FacebookRM/src/proto.cpp +++ b/protocols/FacebookRM/src/proto.cpp @@ -251,6 +251,11 @@ HANDLE FacebookProto::AddToList(int flags, PROTOSEARCHRESULT* psr) fbu.real_name += surname; } + if (fbu.user_id.find_first_not_of("0123456789") != std::string::npos) { + MessageBox(0, TranslateT("Facebook ID must be numeric value."), m_tszUserName, MB_ICONERROR | MB_OK); + return NULL; + } + HANDLE hContact = AddToContactList(&fbu, CONTACT_NONE); if (hContact) { if (flags & PALF_TEMPORARY) { -- cgit v1.2.3