diff options
author | Bharat Mediratta <bharat@menalto.com> | 2013-01-24 23:22:57 -0500 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2013-01-25 14:19:35 -0500 |
commit | 8e954cf5f0be61eb9ac6fa6e8f04ee6dcf4aaf23 (patch) | |
tree | 932756fdb022c2c1b2ee6817b3cc1011ce93cfef /system/helpers/url.php | |
parent | 7548266edf6d277527ba69153e7eadcf811bbb14 (diff) |
Use SERVER_NAME instead of HTTP_HOST. Fixes #1963.
Diffstat (limited to 'system/helpers/url.php')
-rw-r--r-- | system/helpers/url.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |