]> git.openstreetmap.org Git - nominatim.git/commitdiff
fixed: XML format: more_url points to localhost, not base URL
authorDarkshredder <srivastavayash58@gmail.com>
Mon, 29 Mar 2021 19:32:43 +0000 (01:02 +0530)
committerDarkshredder <srivastavayash58@gmail.com>
Mon, 29 Mar 2021 19:32:43 +0000 (01:02 +0530)
lib-php/website/search.php

index 619dec6d9b67aaf8f911737595f5686526741fa4..f8162d68879e9ca56225e0c6550336cac99f210b 100644 (file)
@@ -71,7 +71,7 @@ if (isset($_SERVER['REQUEST_SCHEME'])
     && 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);