From 69c7cc6cf5c91412e47c1293bd1d1f5bd9747355 Mon Sep 17 00:00:00 2001 From: Cathrine Vaage Date: Wed, 10 Jul 2019 15:17:19 +0200 Subject: [PATCH] Strips port from host strings compared to domains --- src/pagefinder/domainrouting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);