mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-11 18:56:21 +00:00
Update core.php
added override for host if it doesn't contain a port
This commit is contained in:
committed by
GitHub
parent
090f452585
commit
7f18a193d4
@@ -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!='')
|
||||
|
||||
Reference in New Issue
Block a user