git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 56cfd2bf authored by mmn's avatar mmn

comparing a url scheme should be done case insensitively

parent f433f7ce
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment