From 163ecbfd1f17fbb7e3b6b4aee3c6e7c325ecc8cd Mon Sep 17 00:00:00 2001 From: levn Date: Sun, 17 Aug 2014 15:52:35 +0800 Subject: [PATCH] fix DOMAIN value HTTP_HOST contains the server port. --- Bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bootstrap.php b/Bootstrap.php index ddfb3ce..cdd600d 100755 --- a/Bootstrap.php +++ b/Bootstrap.php @@ -36,7 +36,7 @@ // The current TLD address, scheme, and port define('DOMAIN', (strtolower(getenv('HTTPS')) == 'on' ? 'https' : 'http') . '://' - . getenv('HTTP_HOST') . (($p = getenv('SERVER_PORT')) != 80 AND $p != 443 ? ":$p" : '')); + . getenv('HTTP_HOST')); // The current site path define('PATH', parse_url(getenv('REQUEST_URI'), PHP_URL_PATH));