From 9d119b627991f795704cbe41539cd0f980d5d72d Mon Sep 17 00:00:00 2001 From: slawkens Date: Tue, 7 Nov 2023 22:15:23 +0100 Subject: [PATCH] This is more error tolerant --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.php b/common.php index 61cb32ca..8684cc4b 100644 --- a/common.php +++ b/common.php @@ -172,5 +172,5 @@ function isHttps(): bool return (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) === 'https') || (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') - || $_SERVER['SERVER_PORT'] == 443; + || (isset($_SERVER['SERVER_PORT']) && (int) $_SERVER['SERVER_PORT'] === 443); }