]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/log.php
increase inital search radius for reverse
[nominatim.git] / lib / log.php
index 361c0fb10cdd15ab1a3009fe3455ce038f546418..501259d0ed2d48dfc8be60fe97ef5f40a07c268d 100644 (file)
@@ -19,6 +19,8 @@
                {
                        if (isset($_GET['email']))
                                $sUserAgent = $_GET['email'];
+                       elseif (isset($_SERVER['HTTP_REFERER']))
+                               $sUserAgent = $_SERVER['HTTP_REFERER'];
                        else
                                $sUserAgent = $_SERVER['HTTP_USER_AGENT'];
                        $sSQL = 'insert into new_query_log (type,starttime,query,ipaddress,useragent,language,format,searchterm)';