]> git.openstreetmap.org Git - nominatim.git/commitdiff
log referer
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 28 Jun 2013 22:01:31 +0000 (00:01 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 28 Jun 2013 22:36:03 +0000 (00:36 +0200)
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)';