HOR-2673
This commit is contained in:
@@ -45,19 +45,16 @@ class G
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* is_https
|
* is_https
|
||||||
* @return void
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public static function is_https()
|
public static function is_https()
|
||||||
{
|
{
|
||||||
if (isset($_SERVER['HTTPS'])) {
|
$is_http = false;
|
||||||
if ($_SERVER['HTTPS']=='on') {
|
if ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') ||
|
||||||
return true;
|
(isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) {
|
||||||
} else {
|
$is_http = true;
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
return $is_http;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user