Sanitize requests before analyze
This commit is contained in:
parent
a03b1dfc4f
commit
122ee875fa
7
iwla.py
7
iwla.py
|
@ -818,12 +818,15 @@ class IWLA(object):
|
||||||
for l in _file:
|
for l in _file:
|
||||||
# print "line " + l
|
# print "line " + l
|
||||||
|
|
||||||
groups = self.log_re.match(l)
|
sanitized = l.replace('<', '')
|
||||||
|
sanitized = sanitized.replace('>', '')
|
||||||
|
|
||||||
|
groups = self.log_re.match(sanitized)
|
||||||
|
|
||||||
if groups:
|
if groups:
|
||||||
self._newHit(groups.groupdict(""))
|
self._newHit(groups.groupdict(""))
|
||||||
else:
|
else:
|
||||||
self.logger.warning("No match for %s" % (l))
|
self.logger.warning("No match for %s" % (sanitized))
|
||||||
#break
|
#break
|
||||||
|
|
||||||
if self.analyse_started:
|
if self.analyse_started:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user