From 3ea30ef7ebb7aa6180a47db29575055dd97cff62 Mon Sep 17 00:00:00 2001 From: alecpl Date: Wed, 4 Nov 2009 07:22:17 +0000 Subject: - fix HTTPS checking (#1486273) --- program/include/main.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/include/main.inc') 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; -- cgit v1.2.3