From 56cfd2bf22bb0cea7d8c0faf0dac2bd6e8131caf Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 2 Aug 2012 13:38:11 +0200 Subject: [PATCH] comparing a url scheme should be done case insensitively --- classes/File_redirection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);