]> git.openstreetmap.org Git - nominatim.git/commitdiff
Added HTTP_HOST to if statement
authorDarkshredder <srivastavayash58@gmail.com>
Mon, 29 Mar 2021 21:32:55 +0000 (03:02 +0530)
committerDarkshredder <srivastavayash58@gmail.com>
Mon, 29 Mar 2021 21:32:55 +0000 (03:02 +0530)
lib-php/website/search.php

index f8162d68879e9ca56225e0c6550336cac99f210b..ae3e1dbff2d9288556bcf9e3dd6be85cbae55552 100644 (file)
@@ -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'].'://'