fix
This commit is contained in:
parent
ab1409e108
commit
dc03734a20
1 changed files with 2 additions and 1 deletions
|
@ -547,6 +547,7 @@ if (!function_exists('isSecure')) {
|
|||
*/
|
||||
function isSecure(): bool
|
||||
{
|
||||
return (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] === 443;
|
||||
return (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off')
|
||||
|| (!empty($_SERVER['HTTPS']) && $_SERVER['SERVER_PORT'] === 443);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue