Switch server blocklist check to case-insensitive shell wildcard
This commit is contained in:
parent
56e0a92d83
commit
46f7b79c7d
|
@ -472,7 +472,7 @@ class Network
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($domain_blocklist as $domain_block) {
|
foreach ($domain_blocklist as $domain_block) {
|
||||||
if (strcasecmp($domain_block['domain'], $host) === 0) {
|
if (fnmatch(strtolower($domain_block['domain']), strtolower($host))) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue