comparing a url scheme should be done case insensitively

This commit is contained in:
Mikael Nordfeldth 2012-08-02 13:38:11 +02:00
parent f433f7ce77
commit 56cfd2bf22
1 changed files with 1 additions and 1 deletions

View 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);