From: Michael Vogel Date: Sun, 8 Nov 2015 14:00:52 +0000 (+0100) Subject: Now it is possible to search for @http://profile... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7de6f23f4a169713b4385fa6fd2a8d397b47b759;p=friendica.git Now it is possible to search for @http://profile... --- 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))); }