summaryrefslogtreecommitdiff
path: root/program/include/main.inc
diff options
context:
space:
mode:
Diffstat (limited to 'program/include/main.inc')
-rw-r--r--program/include/main.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index aa0d3fa26..258f719ce 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -1410,7 +1410,7 @@ function rcube_https_check($port=null, $use_https=true)
{
global $RCMAIL;
- if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off')
+ if (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) != 'off')
return true;
if ($port && $_SERVER['SERVER_PORT'] == $port)
return true;