summaryrefslogtreecommitdiff
path: root/app/helpers.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-09-08 16:49:54 +0200
committerFrédéric Guillot <fred@kanboard.net>2014-09-08 16:49:54 +0200
commitbc0fa40b24f73ccce067f2d23e9aae1335c46694 (patch)
treefbb29773ce539428caed617738db2ccd4bf59df3 /app/helpers.php
parent532ea3b8685cb141526fbcd2cd3dd13667452783 (diff)
Fix bug HTTPS detection (issue with IIS)
Diffstat (limited to 'app/helpers.php')
-rw-r--r--app/helpers.php2
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']).'/' : '/';