aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-02-12 14:18:32 -0800
committerfriendica <info@friendica.com>2012-02-12 14:18:32 -0800
commit330a876d819c640d759776b12c79b46751c4754a (patch)
tree32392873489b456bb085fbaf4d17ec53f7232d2c /include/network.php
parent34ac72cffdc9c5614ec36013319634b5173f4b47 (diff)
downloadvolse-hubzilla-330a876d819c640d759776b12c79b46751c4754a.tar.gz
volse-hubzilla-330a876d819c640d759776b12c79b46751c4754a.tar.bz2
volse-hubzilla-330a876d819c640d759776b12c79b46751c4754a.zip
bug #281
Diffstat (limited to 'include/network.php')
-rwxr-xr-xinclude/network.php3
1 files changed, 3 insertions, 0 deletions
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);