From 7de6f23f4a169713b4385fa6fd2a8d397b47b759 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 8 Nov 2015 15:00:52 +0100 Subject: [PATCH] Now it is possible to search for @http://profile... --- mod/dirfind.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/dirfind.php b/mod/dirfind.php index d280ec0fc2..cf47f7e885 100644 --- a/mod/dirfind.php +++ b/mod/dirfind.php @@ -33,7 +33,8 @@ function dirfind_content(&$a, $prefix = "") { if(strpos($search,'@') === 0) { $search = substr($search,1); - if (valid_email($search)) { + if ((valid_email($search) AND validate_email($search)) OR + (substr(normalise_link($search), 0, 7) == "http://")) { $user_data = probe_url($search); $discover_user = (in_array($user_data["network"], array(NETWORK_DFRN, NETWORK_OSTATUS, NETWORK_DIASPORA))); }