Switch server blocklist check to case-insensitive shell wildcard

This commit is contained in:
Hypolite Petovan 2019-07-25 22:36:25 -04:00
parent 56e0a92d83
commit 46f7b79c7d

View file

@ -472,7 +472,7 @@ class Network
}
foreach ($domain_blocklist as $domain_block) {
if (strcasecmp($domain_block['domain'], $host) === 0) {
if (fnmatch(strtolower($domain_block['domain']), strtolower($host))) {
return true;
}
}