From 7f18a193d4f1a2fbb6e52f7da2cd1cb6884d8944 Mon Sep 17 00:00:00 2001 From: Christian Haschek Date: Sat, 4 Nov 2023 18:14:55 +0100 Subject: [PATCH] Update core.php added override for host if it doesn't contain a port --- inc/core.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/core.php b/inc/core.php index 3d1acb3..d61cd41 100644 --- a/inc/core.php +++ b/inc/core.php @@ -983,6 +983,7 @@ function getDomain($stripport=true) //strip port if(strpos($host,':')!==false) $strippedhost = substr($host,0,strpos($host,':')); + else $strippedhost = $host; //check if it's in ALLOWED_DOMAINS if(defined('ALLOWED_DOMAINS') && ALLOWED_DOMAINS!='') @@ -1001,4 +1002,4 @@ function getURL() return URL; $protocol = strpos(strtolower($_SERVER['SERVER_PROTOCOL']), 'https') === FALSE ? 'http' : 'https'; return $protocol . '://' . getDomain(false).'/'; -} \ No newline at end of file +}