Hacky support for geo URI detection

Won't work with common_purify yet because there is no geo uri scheme for it
This commit is contained in:
Mikael Nordfeldth
2016-02-03 14:19:08 +01:00
parent b1ed1f48ea
commit e903bd0bc3
2 changed files with 24 additions and 0 deletions

View File

@@ -343,6 +343,11 @@ class File_redirection extends Managed_DataObject
// don't touch anything
break;
// URLs with coordinates, not browsable domain names
case 'geo':
// don't touch anything
break;
default:
$out_url = $default_scheme . ltrim($out_url, '/');
$p = parse_url($out_url);