From 1fa549886f1f42992c266078f57f80fca45301e9 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Sat, 20 Oct 2018 23:15:32 +0200 Subject: [PATCH] Define explode limit when removing port --- src/Model/Subsite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Subsite.php b/src/Model/Subsite.php index 80b7645..c12721b 100644 --- a/src/Model/Subsite.php +++ b/src/Model/Subsite.php @@ -258,7 +258,7 @@ class Subsite extends DataObject } // Remove ports, we aren't concerned with them in terms of detecting subsites via domains - $hostParts = explode(':', $host); + $hostParts = explode(':', $host, 2); $host = reset($hostParts); $matchingDomains = null;