check case insensitive

This commit is contained in:
Matthias Pfefferle 2020-05-18 16:46:51 +02:00
parent 5ad36d0027
commit 19a7bddc5f

View file

@ -325,7 +325,7 @@ function get_blacklist() {
*/ */
function is_blacklisted( $url ) { function is_blacklisted( $url ) {
foreach ( \ActivityPub\get_blacklist() as $blacklisted_host ) { foreach ( \ActivityPub\get_blacklist() as $blacklisted_host ) {
if ( \strpos( $url, $blacklisted_host ) !== false ) { if ( \stripos( $url, $blacklisted_host ) !== false ) {
return true; return true;
} }
} }