opensearch onion fix

This commit is contained in:
lolcat 2024-04-22 11:12:46 -04:00
parent 0dc9d62985
commit 81dc93802c
3 changed files with 17 additions and 3 deletions

View file

@ -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"]
);