From 39911592abd70ba12045f7e3b8238df4d8785f85 Mon Sep 17 00:00:00 2001 From: mrjk990 Date: Mon, 7 May 2018 15:45:39 +0300 Subject: [PATCH] fix https when $_SERVER['HTTPS'] return null --- upload/includes/functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/upload/includes/functions.php b/upload/includes/functions.php index 602a4e8e..ba563baa 100644 --- a/upload/includes/functions.php +++ b/upload/includes/functions.php @@ -4191,6 +4191,8 @@ } } elseif ( isset($_SERVER['SERVER_PORT']) && ( '443' == $_SERVER['SERVER_PORT'] ) ) { return true; + } elseif(isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') { + return true; } return false; }