]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
comparing a url scheme should be done case insensitively
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 2 Aug 2012 11:38:11 +0000 (13:38 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 12 Aug 2013 10:52:50 +0000 (12:52 +0200)
classes/File_redirection.php

index 130d9e7d74751bedba7fd4522a9f472bde81620e..a2b2bfad015caa9a8545f469060d1b01ddb4f569 100644 (file)
@@ -311,7 +311,7 @@ class File_redirection extends Managed_DataObject
         $p = parse_url($out_url);
         if (empty($p['host']) || empty($p['scheme'])) {
             list($scheme) = explode(':', $in_url, 2);
-            switch ($scheme) {
+            switch (strtolower($scheme)) {
             case 'fax':
             case 'tel':
                 $out_url = str_replace('.-()', '', $out_url);