From 330a876d819c640d759776b12c79b46751c4754a Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 12 Feb 2012 14:18:32 -0800 Subject: bug #281 --- include/network.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/network.php') diff --git a/include/network.php b/include/network.php index 551d5e1d0..25db62d16 100755 --- a/include/network.php +++ b/include/network.php @@ -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); -- cgit v1.2.3