mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-11 10:26:43 -04:00
test for existence of HTTP_X_FORWARDED_PROTO
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user