This commit is contained in:
Sergio Brighenti 2021-07-31 13:00:38 +02:00
parent dc03734a20
commit 285c970933

View file

@ -548,6 +548,6 @@ if (!function_exists('isSecure')) {
function isSecure(): bool function isSecure(): bool
{ {
return (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') return (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off')
|| (!empty($_SERVER['HTTPS']) && $_SERVER['SERVER_PORT'] === 443); || (!empty($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] === 443);
} }
} }