diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-09-08 16:49:54 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-08 16:49:54 +0200 |
commit | bc0fa40b24f73ccce067f2d23e9aae1335c46694 (patch) | |
tree | fbb29773ce539428caed617738db2ccd4bf59df3 /app/helpers.php | |
parent | 532ea3b8685cb141526fbcd2cd3dd13667452783 (diff) |
Fix bug HTTPS detection (issue with IIS)
Diffstat (limited to 'app/helpers.php')
-rw-r--r-- | app/helpers.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers.php b/app/helpers.php index 0d8409c8..85a2507d 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -65,7 +65,7 @@ function markdown($text) function get_current_base_url() { - $url = isset($_SERVER['HTTPS']) ? 'https://' : 'http://'; + $url = \Core\Tool::isHTTPS() ? 'https://' : 'http://'; $url .= $_SERVER['SERVER_NAME']; $url .= $_SERVER['SERVER_PORT'] == 80 || $_SERVER['SERVER_PORT'] == 443 ? '' : ':'.$_SERVER['SERVER_PORT']; $url .= dirname($_SERVER['PHP_SELF']) !== '/' ? dirname($_SERVER['PHP_SELF']).'/' : '/'; |