summaryrefslogtreecommitdiff
path: root/sitemap.php
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2024-04-22 11:12:46 -0400
committerlolcat <will@lolcat.ca>2024-04-22 11:12:46 -0400
commit81dc93802c32aa6f593a12b3f2efbe38dc9e31f7 (patch)
treed19c65d8a838582d54d57c42a0955725a49e2166 /sitemap.php
parent0dc9d62985083174854251938daec896edef71bd (diff)
opensearch onion fix
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 041550c..80bda66 100644
--- a/sitemap.php
+++ b/sitemap.php
@@ -5,7 +5,7 @@ include "data/config.php";
$domain =
htmlspecialchars(
- ((isset($_SERVER["HTTPS"]) && ($_SERVER["HTTPS"] == "on" || $_SERVER["HTTPS"] === 1)) ? "https" : "http") .
+ (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ? "https" : "http") .
'://' . $_SERVER["HTTP_HOST"]
);