summaryrefslogtreecommitdiff
path: root/sitemap.php
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2024-02-17 23:50:40 -0500
committerlolcat <will@lolcat.ca>2024-02-17 23:50:40 -0500
commit43162438afb306e3e3227430135308167684f63c (patch)
treee6059a4de1e54de39716b82ea4233ab021bca1c2 /sitemap.php
parentaddc5a14a93547f630f23e5b6a79cffa2e37d71a (diff)
more bugfix
Diffstat (limited to 'sitemap.php')
-rw-r--r--sitemap.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/sitemap.php b/sitemap.php
index 6f6c095..041550c 100644
--- a/sitemap.php
+++ b/sitemap.php
@@ -5,7 +5,7 @@ include "data/config.php";
$domain =
htmlspecialchars(
- (strpos(strtolower($_SERVER['SERVER_PROTOCOL']), 'https') === false ? 'http' : 'https') .
+ ((isset($_SERVER["HTTPS"]) && ($_SERVER["HTTPS"] == "on" || $_SERVER["HTTPS"] === 1)) ? "https" : "http") .
'://' . $_SERVER["HTTP_HOST"]
);