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 +}