]> git.openstreetmap.org Git - nominatim.git/commitdiff
add root url to ban check
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 1 Aug 2017 20:05:26 +0000 (22:05 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 1 Aug 2017 20:05:26 +0000 (22:05 +0200)
utils/cron_ipanalyse.py

index 7a70e586c5634529eccd7dcedfbdc311911762f2..fa9f1cb7c7c833715b1f8528fa5bf36d017fd315 100755 (executable)
@@ -85,7 +85,9 @@ class LogEntry:
             if qp[0] == 'OPTIONS':
                 self.request = None
             else:
-                if '/search' in qp[1]:
+                if '/' in qp[1]:
+                    self.request = 'S'
+                elif '/search' in qp[1]:
                     self.request = 'S'
                 elif '/reverse' in qp[1]:
                     self.request = 'R'