]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/website/search.php
Added HTTP_HOST to if statement
[nominatim.git] / 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'].'://'