2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Check HTTPS to work on IIS better

This commit is contained in:
Adam Zammit
2013-04-03 14:33:02 +11:00
parent 170b627720
commit 15dab90d86

View File

@@ -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://";
}