]> git.mxchange.org Git - friendica.git/commitdiff
Now it is possible to search for @http://profile...
authorMichael Vogel <icarus@dabo.de>
Sun, 8 Nov 2015 14:00:52 +0000 (15:00 +0100)
committerMichael Vogel <icarus@dabo.de>
Sun, 8 Nov 2015 14:00:52 +0000 (15:00 +0100)
mod/dirfind.php

index d280ec0fc2239fae2f33edc3a877ab90ff2c0569..cf47f7e8853647d5733fa05836714da7e881c21f 100644 (file)
@@ -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)));
                }