Sanitize requests before analyze

This commit is contained in:
Gregory Soutade 2024-07-28 09:24:52 +02:00
parent a03b1dfc4f
commit 122ee875fa

View File

@ -818,12 +818,15 @@ class IWLA(object):
for l in _file:
# print "line " + l
groups = self.log_re.match(l)
sanitized = l.replace('<', '')
sanitized = sanitized.replace('>', '')
groups = self.log_re.match(sanitized)
if groups:
self._newHit(groups.groupdict(""))
else:
self.logger.warning("No match for %s" % (l))
self.logger.warning("No match for %s" % (sanitized))
#break
if self.analyse_started: