summaryrefslogtreecommitdiff
path: root/opensearch.php
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2024-02-17 23:22:19 -0500
committerlolcat <will@lolcat.ca>2024-02-17 23:22:19 -0500
commitaddc5a14a93547f630f23e5b6a79cffa2e37d71a (patch)
treea9163ba3a2e24c3c493cdde95e506c0e7e8a772d /opensearch.php
parentedc917f5ee984160a0eef436dabd51696d675964 (diff)
boobs
Diffstat (limited to 'opensearch.php')
-rw-r--r--opensearch.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/opensearch.php b/opensearch.php
index 632a533..fb51430 100644
--- a/opensearch.php
+++ b/opensearch.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"]
);