Possibly replace weirdly capitalized htTPs: too

This commit is contained in:
Mikael Nordfeldth 2016-03-30 01:31:17 +02:00
parent 0177c8f1cf
commit df3bcbb6cb

View File

@ -42,7 +42,7 @@ abstract class WebFingerResource
if (!strtolower(parse_url($alias, PHP_URL_SCHEME)) === 'https') { if (!strtolower(parse_url($alias, PHP_URL_SCHEME)) === 'https') {
continue; continue;
} }
$aliases[preg_replace('/^https:/', 'http:', $alias, 1)] = $id; $aliases[preg_replace('/^https:/i', 'http:', $alias, 1)] = $id;
} }
} }