diff options
author | Andrew Manning <tamanning@zoho.com> | 2015-11-30 07:50:21 -0500 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2015-11-30 07:50:21 -0500 |
commit | d4b04d22eda4e60f5c6d11d1cb2223dee912783a (patch) | |
tree | f50541fa6c275b53a284f14694b7462e5763caa4 /include/externals.php | |
parent | b1f4b9759b34249540d81aed724aa023153e2b53 (diff) | |
parent | 650f882265cc0256fa85046baacca9dc6db56d24 (diff) | |
download | volse-hubzilla-d4b04d22eda4e60f5c6d11d1cb2223dee912783a.tar.gz volse-hubzilla-d4b04d22eda4e60f5c6d11d1cb2223dee912783a.tar.bz2 volse-hubzilla-d4b04d22eda4e60f5c6d11d1cb2223dee912783a.zip |
Merge branch 'master' of https://github.com/redmatrix/hubzilla into update-addon-script
Diffstat (limited to 'include/externals.php')
-rw-r--r-- | include/externals.php | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/include/externals.php b/include/externals.php index 4ac9754e2..3a3a32420 100644 --- a/include/externals.php +++ b/include/externals.php @@ -40,19 +40,11 @@ function externals_run($argv, $argc){ $url = $r[0]['site_url']; } - // Note: blacklisted sites must be stored in the config as an array. - // No simple way to turn this into a personal config because we have no identity here. - // For that we probably need a variant of superblock. - $blacklisted = false; - $bl1 = get_config('system','blacklisted_sites'); - if(is_array($bl1) && $bl1) { - foreach($bl1 as $bl) { - if($bl && strpos($url,$bl) !== false) { - $blacklisted = true; - break; - } - } + + if(! check_siteallowed($url)) { + logger('blacklisted site: ' . $url); + $blacklisted = true; } $attempts ++; |