From ef8ac0ca5cc84c0a7c918bf03c96a958ce5079f4 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Sat, 16 Oct 2021 15:55:33 +0200 Subject: [PATCH] bug fix for #1334 --- install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.php b/install.php index 96726059..ed003eac 100644 --- a/install.php +++ b/install.php @@ -83,7 +83,7 @@ if (!defined('JSON_PRETTY_PRINT')) { // Domain and protocol define('DOMAIN', $_SERVER['HTTP_HOST']); -if ( !empty($_SERVER['HTTPS']) || +if ((!empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] !== 'off')) || (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) || (!empty($_SERVER['HTTP_X_FORWARDED_SSL']) && ($_SERVER['HTTP_X_FORWARDED_SSL'] == 'on')) ) { define('PROTOCOL', 'https://');