X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ffollow.php;h=711579ff5a013c0fb543db99bdc9d3b0a4603d0e;hb=2148a2bdb0cb38d3a085109eeeb6acc5d65484e6;hp=30451910772295fb824e8ac66b127b51100182e5;hpb=4d30f2b292ec0b77de13cae3c622df84f84aa54f;p=friendica.git diff --git a/include/follow.php b/include/follow.php index 3045191077..711579ff5a 100644 --- a/include/follow.php +++ b/include/follow.php @@ -1,11 +1,14 @@ $val) { - if (isset($r[0][$key]) AND ($r[0][$key] != "") AND ($val == "")) + if (isset($r[0][$key]) && ($r[0][$key] != "") && ($val == "")) $ret[$key] = $r[0][$key]; - if (isset($r[0][$key]) AND ($ret[$key] != $r[0][$key])) + if (isset($r[0][$key]) && ($ret[$key] != $r[0][$key])) $update = true; } @@ -82,6 +85,11 @@ function new_contact($uid,$url,$interactive = false) { return $result; } + if (blocked_url($url)) { + $result['message'] = t('Blocked domain'); + return $result; + } + if (! $url) { $result['message'] = t('Connect URL missing.'); return $result;