]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Possibly replace weirdly capitalized htTPs: too
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 29 Mar 2016 23:31:17 +0000 (01:31 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 29 Mar 2016 23:31:17 +0000 (01:31 +0200)
plugins/WebFinger/lib/webfingerresource.php

index e4f14b13d532fa932239105feb95055ebfe83f22..a1ebda6a33d999b7a4a2194e1ec1afab64a3c414 100644 (file)
@@ -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;
             }
         }