mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-10 09:04:26 +02:00
Avoid problems with an empty domain in the blocklist (#13919)
* Avoid problems with an empty domain in the blocklist * Test code removed
This commit is contained in:
parent
9ad452a19b
commit
cb294cf411
2 changed files with 3 additions and 3 deletions
|
@ -217,7 +217,7 @@ class Network
|
|||
}
|
||||
|
||||
foreach ($domain_blocklist as $domain_block) {
|
||||
if (fnmatch(strtolower($domain_block['domain']), strtolower($uri->getHost()))) {
|
||||
if (!empty($domain_block['domain']) && fnmatch(strtolower($domain_block['domain']), strtolower($uri->getHost()))) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue