diff options
Diffstat (limited to 'includes')
| -rwxr-xr-x | includes/session.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/session.php b/includes/session.php index 56db60ce2a..c58c2be6e8 100755 --- a/includes/session.php +++ b/includes/session.php @@ -165,7 +165,7 @@ if (!ini_get('date.timezone')) { // TODO: we ought to generate this dynamically, but lots of code currently relies on this global $QUERY_STRING=isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : ''; -$https = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off'; +$https = !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off'; define('WT_SERVER_NAME', ($https ? 'https://' : 'http://'). (empty($_SERVER['SERVER_NAME']) ? '' : $_SERVER['SERVER_NAME']). |
