From: Mikael Nordfeldth Date: Thu, 2 Aug 2012 11:38:11 +0000 (+0200) Subject: comparing a url scheme should be done case insensitively X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=56cfd2bf22bb0cea7d8c0faf0dac2bd6e8131caf;p=quix0rs-gnu-social.git comparing a url scheme should be done case insensitively --- diff --git a/classes/File_redirection.php b/classes/File_redirection.php index 130d9e7d74..a2b2bfad01 100644 --- a/classes/File_redirection.php +++ b/classes/File_redirection.php @@ -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);