From addc5a14a93547f630f23e5b6a79cffa2e37d71a Mon Sep 17 00:00:00 2001 From: lolcat Date: Sat, 17 Feb 2024 23:22:19 -0500 Subject: boobs --- opensearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opensearch.php') 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"] ); -- cgit v1.2.3