Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.

Commit

Permalink
Merge pull request #57 from cathrinevaage/feature/domain-routing-host…
Browse files Browse the repository at this point in the history
…-fix

Strips port from host strings compared to domains
  • Loading branch information
thomas-alrek authored Jul 10, 2019
2 parents 8e886ab + 69c7cc6 commit 1c5c599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pagefinder/domainrouting.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1c5c599

Please sign in to comment.