test for existence of HTTP_X_FORWARDED_PROTO

This commit is contained in:
Isaac Connor 2018-07-12 15:04:54 -04:00
parent 903127fe85
commit 43827953cd
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ require_once( 'includes/Monitor.php' );
if ( if (
(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on')
or or
($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) and ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'))
) { ) {
$protocol = 'https'; $protocol = 'https';
} else { } else {