mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-21 10:27:52 +02: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()
|
static function schema()
|
||||||
{
|
{
|
||||||
return !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' ||
|
return !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' ||
|
||||||
$_SERVER['SERVER_PORT'] == 443 ||
|
$_SERVER['SERVER_PORT'] == 443 ||
|
||||||
!empty($GLOBALS['egw_info']['server']['enforce_ssl']) ||
|
!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';
|
'https' : 'http';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user