af_redditimgur: don't try to check if null domain is blacklisted
This commit is contained in:
parent
7c45b3f789
commit
4e02dc0ab5
|
@ -936,6 +936,7 @@ class Af_RedditImgur extends Plugin {
|
|||
private function is_blacklisted(string $src, array $also_blacklist = []) : bool {
|
||||
$src_domain = parse_url($src, PHP_URL_HOST);
|
||||
|
||||
if ($src_domain)
|
||||
foreach (array_merge($this->domain_blacklist, $also_blacklist) as $domain) {
|
||||
if (strstr($src_domain, $domain) !== false) {
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue