mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-21 18:31:37 +02:00
Get rid of "Undefined array key "HTTP_X_FORWARDED_PROTO"" warning
This commit is contained in:
parent
604a12f7e6
commit
0c9cb71a70
@ -62,7 +62,7 @@ class Http
|
||||
return !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' ||
|
||||
$_SERVER['SERVER_PORT'] == 443 ||
|
||||
!empty($GLOBALS['egw_info']['server']['enforce_ssl']) ||
|
||||
$_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https' ?
|
||||
isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https' ?
|
||||
'https' : 'http';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user