From: Hypolite Petovan Date: Fri, 26 Jul 2019 02:36:25 +0000 (-0400) Subject: Switch server blocklist check to case-insensitive shell wildcard X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=46f7b79c7dd9d96d39867a6942ed201012f5d6e0;p=friendica.git Switch server blocklist check to case-insensitive shell wildcard --- diff --git a/src/Util/Network.php b/src/Util/Network.php index 92265e30e6..75b928bea2 100644 --- a/src/Util/Network.php +++ b/src/Util/Network.php @@ -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; } }