mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:42 +01:00
Get rid of "Undefined array key "HTTP_X_FORWARDED_PROTO"" warning
This commit is contained in:
parent
604a12f7e6
commit
0c9cb71a70
@ -60,10 +60,10 @@ class Http
|
||||
static function schema()
|
||||
{
|
||||
return !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' ||
|
||||
$_SERVER['SERVER_PORT'] == 443 ||
|
||||
!empty($GLOBALS['egw_info']['server']['enforce_ssl']) ||
|
||||
$_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https' ?
|
||||
'https' : 'http';
|
||||
$_SERVER['SERVER_PORT'] == 443 ||
|
||||
!empty($GLOBALS['egw_info']['server']['enforce_ssl']) ||
|
||||
isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https' ?
|
||||
'https' : 'http';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user