From 43827953cdfd0a9a8317e31bb811b68aaad7bf08 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 12 Jul 2018 15:04:54 -0400 Subject: [PATCH] test for existence of HTTP_X_FORWARDED_PROTO --- web/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/index.php b/web/index.php index 4a37241a7..7f823f1fd 100644 --- a/web/index.php +++ b/web/index.php @@ -55,7 +55,7 @@ require_once( 'includes/Monitor.php' ); if ( (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') or - ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') + (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) and ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ) { $protocol = 'https'; } else {