diff options
author | marijus <mario@mariovavti.com> | 2014-08-22 09:14:19 +0200 |
---|---|---|
committer | marijus <mario@mariovavti.com> | 2014-08-22 09:14:19 +0200 |
commit | c5f4e5bac76de93b30c00fa9fb3dc8a559d7b070 (patch) | |
tree | fcb7c92735bbcbae9359d3fcf91a185226698426 /include/zot.php | |
parent | 85ef5c10333ce4ce9d7e2d4b17caa4b1e7c871ef (diff) | |
parent | 1abd2a2917504d102a6e4c6a9c34fa4a5fba4937 (diff) | |
download | volse-hubzilla-c5f4e5bac76de93b30c00fa9fb3dc8a559d7b070.tar.gz volse-hubzilla-c5f4e5bac76de93b30c00fa9fb3dc8a559d7b070.tar.bz2 volse-hubzilla-c5f4e5bac76de93b30c00fa9fb3dc8a559d7b070.zip |
Merge branch 'master' of https://github.com/friendica/red into upstream
Diffstat (limited to 'include/zot.php')
-rw-r--r-- | include/zot.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/zot.php b/include/zot.php index 8b0efe09d..41d0bc1eb 100644 --- a/include/zot.php +++ b/include/zot.php @@ -507,6 +507,22 @@ function zot_refresh($them,$channel = null, $force = false) { function zot_gethub($arr) { if($arr['guid'] && $arr['guid_sig'] && $arr['url'] && $arr['url_sig']) { + + $blacklisted = false; + $bl1 = get_config('system','blacklisted_sites'); + if(is_array($bl1) && $bl1) { + foreach($bl1 as $bl) { + if($bl && strpos($arr['url'],$bl) !== false) { + $blacklisted = true; + break; + } + } + } + if($blacklisted) { + logger('zot_gethub: blacklisted site: ' . $arr['url']); + return null; + } + $r = q("select * from hubloc where hubloc_guid = '%s' and hubloc_guid_sig = '%s' and hubloc_url = '%s' and hubloc_url_sig = '%s' |