From fbbc070b398428827412356c1bab80e89ae179aa Mon Sep 17 00:00:00 2001 From: Ian Blenke Date: Thu, 15 Feb 2018 09:34:24 -0500 Subject: [PATCH] Adding a check for HTTP_X_FORWARDED_PROTO in https_is_running() --- pandora_console/include/functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index 2557ae3db2..2932b62c70 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -69,6 +69,10 @@ require_once('functions_io.php'); //} function https_is_running() { + if(isset ($_SERVER['HTTP_X_FORWARDED_PROTO']) + && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') { + return true; + } if (isset ($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] === true || $_SERVER['HTTPS'] == 'on')) {