X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f476dd61ac30d7248e0b729aa1fcd8d414088ad9..33f7bba69858405517c68a4aaf609ce69e00e277:/lib/log.php?ds=inline diff --git a/lib/log.php b/lib/log.php index 361c0fb1..501259d0 100644 --- a/lib/log.php +++ b/lib/log.php @@ -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)';