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:
@@ -131,7 +131,7 @@ if (!defined('QUEXS_PATH')) define('QUEXS_PATH', '/quexs/');
|
|||||||
|
|
||||||
$protocol = "http://";
|
$protocol = "http://";
|
||||||
|
|
||||||
if (!empty($_SERVER['HTTPS']))
|
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443)
|
||||||
{
|
{
|
||||||
$protocol = "https://";
|
$protocol = "https://";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user