diff --git a/src/pagefinder/domainrouting.php b/src/pagefinder/domainrouting.php index 8357e16..af06a74 100644 --- a/src/pagefinder/domainrouting.php +++ b/src/pagefinder/domainrouting.php @@ -6,7 +6,7 @@ } else if (isset(NF::$config['domains']['dev_domain']) && getenv('ENV') !== 'master') { $routing_domain = NF::$config['domains']['dev_domain']; } else { - $routing_domain = convert_to_safe_string($_SERVER['HTTP_HOST'], 'str'); + $routing_domain = explode(':', $_SERVER['HTTP_HOST'])[0]; } NF::debug('Domain', $routing_domain);