provide the site blacklist everywhere it is needed

This commit is contained in:
friendica
2014-08-21 21:07:32 -07:00
parent 72a766432d
commit 69d3e5468d
3 changed files with 43 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ function externals_run($argv, $argc){
$bl1 = get_config('system','blacklisted_sites');
if(is_array($bl1) && $bl1) {
foreach($bl1 as $bl) {
if(strpos($url,$bl) !== false) {
if($bl && strpos($url,$bl) !== false) {
$blacklisted = true;
break;
}