This commit is contained in:
Sergio Brighenti 2021-07-31 13:00:21 +02:00
parent ab1409e108
commit dc03734a20

View file

@ -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);
}
}