From 0dd3ab5aa81fd1e9f92d4fb2ecf6ed6fc18db508 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Thu, 21 May 2020 19:00:10 +0300 Subject: [PATCH] Fix for using remote host with non-default port --- app/config/collections.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/config/collections.php b/app/config/collections.php index 4b23a1edd..6d67d938d 100644 --- a/app/config/collections.php +++ b/app/config/collections.php @@ -41,7 +41,7 @@ $collections = [ '$collection' => Database::SYSTEM_COLLECTION_PLATFORMS, 'name' => 'Current Host', 'type' => 'web', - 'hostname' => $request->getServer('HTTP_HOST'), + 'hostname' => parse_url($request->getServer('HTTP_HOST'), PHP_URL_HOST), ], ], 'legalName' => '',