From 15dab90d8659d470e0e14e088d5a0ce4648137cc Mon Sep 17 00:00:00 2001 From: Adam Zammit Date: Wed, 3 Apr 2013 14:33:02 +1100 Subject: [PATCH] Check HTTPS to work on IIS better --- config.default.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.default.php b/config.default.php index 6b705325..56c5a2a7 100644 --- a/config.default.php +++ b/config.default.php @@ -131,7 +131,7 @@ if (!defined('QUEXS_PATH')) define('QUEXS_PATH', '/quexs/'); $protocol = "http://"; -if (!empty($_SERVER['HTTPS'])) +if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) { $protocol = "https://"; }