From 8e954cf5f0be61eb9ac6fa6e8f04ee6dcf4aaf23 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 24 Jan 2013 23:22:57 -0500 Subject: Use SERVER_NAME instead of HTTP_HOST. Fixes #1963. --- system/helpers/url.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/helpers') diff --git a/system/helpers/url.php b/system/helpers/url.php index 1bc81230..2641cf06 100644 --- a/system/helpers/url.php +++ b/system/helpers/url.php @@ -62,7 +62,7 @@ class url_Core { if ($site_domain === '' OR $site_domain[0] === '/') { // Guess the server name if the domain starts with slash - $base_url = $protocol.'://'.$_SERVER['HTTP_HOST'].$site_domain; + $base_url = $protocol.'://'.$_SERVER['SERVER_NAME'].$site_domain; } else { -- cgit v1.2.3