Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorMatthieu Napoli <matthieu@mnapoli.fr>2014-12-19 00:13:27 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2014-12-19 00:13:27 +0300
commit1fc84146b16f178f95f7b95b089426f9c84744d9 (patch)
treee90e0c099f387671e0ad12ef4c2160835abaeb1a /misc
parent6590128885af88b5bbfe9c0a856a224006f8e7e3 (diff)
parent484cd7a3079f0165728b4391d1bbdd2d478e6bf0 (diff)
Merge branch 'master' into log-refactoring-1
Conflicts: CHANGELOG.md plugins/CoreConsole/Commands/CoreArchiver.php
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/log-analytics/import_logs.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/misc/log-analytics/import_logs.py b/misc/log-analytics/import_logs.py
index a2cf7a5c1d..315b2ac1a1 100755
--- a/misc/log-analytics/import_logs.py
+++ b/misc/log-analytics/import_logs.py
@@ -1751,6 +1751,9 @@ class Parser(object):
try:
hit.referrer = format.get('referrer')
+
+ if hit.referrer.startswith('"'):
+ hit.referrer = hit.referrer[1:-1]
except BaseFormatException:
hit.referrer = ''
if hit.referrer == '-':
@@ -1789,6 +1792,9 @@ class Parser(object):
else:
try:
hit.host = format.get('host').lower().strip('.')
+
+ if hit.host.startswith('"'):
+ hit.host = hit.host[1:-1]
except BaseFormatException:
# Some formats have no host.
pass