From 0b154a2a1af98a32f66af6ef7c81611628bb78e1 Mon Sep 17 00:00:00 2001 From: Darkshredder Date: Tue, 30 Mar 2021 03:02:55 +0530 Subject: [PATCH 1/1] Added HTTP_HOST to if statement --- lib-php/website/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib-php/website/search.php b/lib-php/website/search.php index f8162d68..ae3e1dbf 100644 --- a/lib-php/website/search.php +++ b/lib-php/website/search.php @@ -67,7 +67,7 @@ if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { } if (isset($_SERVER['REQUEST_SCHEME']) - && isset($_SERVER['SERVER_NAME']) + && isset($_SERVER['HTTP_HOST']) && isset($_SERVER['DOCUMENT_URI']) ) { $sMoreURL = $_SERVER['REQUEST_SCHEME'].'://' -- 2.39.5