From: Darkshredder Date: Mon, 29 Mar 2021 21:32:55 +0000 (+0530) Subject: Added HTTP_HOST to if statement X-Git-Tag: v3.7.0~6^2 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/0b154a2a1af98a32f66af6ef7c81611628bb78e1 Added HTTP_HOST to if statement --- 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'].'://'