From 46f7b79c7dd9d96d39867a6942ed201012f5d6e0 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 25 Jul 2019 22:36:25 -0400 Subject: [PATCH] Switch server blocklist check to case-insensitive shell wildcard --- src/Util/Network.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.39.5