Issue 3501: Mail contacts can be added again

This commit is contained in:
Michael 2018-08-26 19:49:39 +00:00
parent ff16a6a9d1
commit 2079caea14
3 changed files with 6 additions and 5 deletions

View file

@ -561,12 +561,12 @@ class Network
public static function isUrlBlocked($url)
{
$host = @parse_url($url, PHP_URL_HOST);
if (! $host) {
return true;
if (!$host) {
return false;
}
$domain_blocklist = Config::get('system', 'blocklist', []);
if (! $domain_blocklist) {
if (!$domain_blocklist) {
return false;
}