]> git.mxchange.org Git - friendica.git/commitdiff
Switch server blocklist check to case-insensitive shell wildcard
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 26 Jul 2019 02:36:25 +0000 (22:36 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 26 Jul 2019 02:36:25 +0000 (22:36 -0400)
src/Util/Network.php

index 92265e30e6116a8721d8f2b1f4d9db3524e1439f..75b928bea2a2d3aeedf0d08a73c04557224f0d2f 100644 (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;
                        }
                }