Add GET/POST checks before accepting request

This commit is contained in:
Gregory Soutade 2015-03-15 10:31:28 +01:00
parent 1c3fc1c06d
commit 2ed7551049

View File

@ -104,6 +104,9 @@ visits :
requests =>
[fields_from_format_log]
extract_request =>
http_method
http_uri
http_version
extract_uri
extract_parameters*
extract_referer* =>
@ -669,6 +672,9 @@ class IWLA(object):
if not self._decodeHTTPRequest(hit): return False
if hit['extract_request']['http_method'] not in ['GET', 'POST']:
return False
for k in hit.keys():
if hit[k] == '-' or hit[k] == '*':
hit[k] = ''