aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2012-02-13 09:46:42 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2012-02-13 09:46:42 +0100
commit850560519a4bbe9949368933e115f767aeb90b73 (patch)
tree6f162b4b0130a5f829d40f7ebd9d18442ad18921 /include/network.php
parent16d3bc9deb5cb80f438a53f1bf483c79351674af (diff)
parent85c831bcbf6f4cc2793d91e4e3fb3da5828a3f60 (diff)
downloadvolse-hubzilla-850560519a4bbe9949368933e115f767aeb90b73.tar.gz
volse-hubzilla-850560519a4bbe9949368933e115f767aeb90b73.tar.bz2
volse-hubzilla-850560519a4bbe9949368933e115f767aeb90b73.zip
Merge remote-tracking branch 'friendica/master' into mobile
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);