]> git.mxchange.org Git - friendica.git/blobdiff - include/network.php
attribution issue - don't take author name from contact if available from item.
[friendica.git] / include / network.php
index 551d5e1d0f7ee87ef39b0f817bec9659b90de91c..25db62d1611a0d4b78c8970981b03c5e1663abe5 100755 (executable)
@@ -579,6 +579,9 @@ function fetch_xrd_links($url) {
 
 if(! function_exists('validate_url')) {
 function validate_url(&$url) {
+       // no naked subdomains
+       if(strpos($url,'.') === false)
+               return false;
        if(substr($url,0,4) != 'http')
                $url = 'http://' . $url;
        $h = @parse_url($url);