From bc0fa40b24f73ccce067f2d23e9aae1335c46694 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Mon, 8 Sep 2014 16:49:54 +0200 Subject: Fix bug HTTPS detection (issue with IIS) --- app/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/helpers.php') 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']).'/' : '/'; -- cgit v1.2.3