X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/d535dbf337f89d4f8c9ae4124de3c3a08cb0df89..616789bbccd4b35cc643b20c5af3c9835eb22643:/lib-php/website/search.php diff --git a/lib-php/website/search.php b/lib-php/website/search.php index 4dcbc5b7..72ddebe1 100644 --- a/lib-php/website/search.php +++ b/lib-php/website/search.php @@ -72,11 +72,11 @@ 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'].'://' - .$_SERVER['SERVER_NAME'].$_SERVER['DOCUMENT_URI'].'/?' + .$_SERVER['HTTP_HOST'].$_SERVER['DOCUMENT_URI'].'/?' .http_build_query($aMoreParams); } else { $sMoreURL = '/search.php'.http_build_query($aMoreParams);