diff --git a/plugins/WebFinger/lib/webfingerresource.php b/plugins/WebFinger/lib/webfingerresource.php index e4f14b13d5..a1ebda6a33 100644 --- a/plugins/WebFinger/lib/webfingerresource.php +++ b/plugins/WebFinger/lib/webfingerresource.php @@ -42,7 +42,7 @@ abstract class WebFingerResource if (!strtolower(parse_url($alias, PHP_URL_SCHEME)) === 'https') { continue; } - $aliases[preg_replace('/^https:/', 'http:', $alias, 1)] = $id; + $aliases[preg_replace('/^https:/i', 'http:', $alias, 1)] = $id; } }