diff options
author | alecpl <alec@alec.pl> | 2009-10-27 09:43:39 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-10-27 09:43:39 +0000 |
commit | 5818e44345204e2323781adb87edcfba45e246a8 (patch) | |
tree | 523983635c190630ae8a57781e3fa1dbbba53798 /index.php | |
parent | d22f4e67afd40a56db064c571310346bf7acbc55 (diff) |
- Fix $_SERVER['HTTPS'] check for SSL forcing on IIS (#1486243) + fix port check
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -66,7 +66,7 @@ if ($RCMAIL->action=='error' && !empty($_GET['_code'])) { // check if https is required (for login) and redirect if necessary if (empty($_SESSION['user_id']) && ($force_https = $RCMAIL->config->get('force_https', false))) { $https_port = is_bool($force_https) ? 443 : $force_https; - if (!(isset($_SERVER['HTTPS']) || $_SERVER['SERVER_PORT'] == $use_https || $RCMAIL->config->get('use_https'))) { + if (!rcube_https_check($https_port)) { header('Location: https://' . $_SERVER['HTTP_HOST'] . ($https_port != 443 ? ':' . $https_port : '') . $_SERVER['REQUEST_URI']); exit; } |