mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Define explode limit when removing port
This commit is contained in:
parent
2bf4812947
commit
1fa549886f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user