aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorAbinoam P. Marques Jr <abinoam@gmail.com>2012-02-12 18:56:53 -0800
committerAbinoam P. Marques Jr <abinoam@gmail.com>2012-02-12 18:56:53 -0800
commit9697e8233182bc084fb614b2c997b6e0c89c2441 (patch)
treecc5fc682ea9b8eeefe6fbbab2b7ffb0fedeb4f75 /include/network.php
parent135005571f4cfe3170b2f2ce0ea94b39a75c111a (diff)
parent3e85c1d3304c51489249ce2a284910885a1a3c73 (diff)
downloadvolse-hubzilla-9697e8233182bc084fb614b2c997b6e0c89c2441.tar.gz
volse-hubzilla-9697e8233182bc084fb614b2c997b6e0c89c2441.tar.bz2
volse-hubzilla-9697e8233182bc084fb614b2c997b6e0c89c2441.zip
Merge branch 'master' into bbcode
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);