comparing a url scheme should be done case insensitively
This commit is contained in:
parent
f433f7ce77
commit
56cfd2bf22
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user