From e234ac8dcb2fa73bc573fea1e809ef45b3392ca7 Mon Sep 17 00:00:00 2001 From: Natan Frei Date: Mon, 17 Jul 2017 00:44:48 +0300 Subject: $_SERVER['HTTPS'] can be exists and 'off' for non-https connectios --- install/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install') diff --git a/install/index.php b/install/index.php index 4239f5893..883573001 100755 --- a/install/index.php +++ b/install/index.php @@ -180,7 +180,7 @@ } function is_server_https() { - return $_SERVER['HTTPS'] == 'on' || $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'; + return (!empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] != 'off')) || $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'; } function make_self_url_path() { -- cgit v1.2.3