iwla

iwla Commit Details

Date:2016-01-03 09:28:19 (5 years 7 months ago)
Author:Grégory Soutadé
Branch:dev, master
Commit:ec0a3a52a80196edd80a46a3c3afa1e2ae3df23e
Parents: 73e4b0d8a615ada0cf854200700217322ec03939
Message:Fix _normalizeURI substitution. Fix _normalizeParameters. Fix -r argument

Changes:
Miwla.py (3 diffs)

File differences

iwla.py
337337
338338
339339
340
340
341341
342342
343343
......
367367
368368
369369
370
370
371
372
371373
372374
373375
......
817819
818820
819821
820
822
821823
822824
823825
def _normalizeURI(self, uri):
if uri == '/': return uri
uri = self.normalize_uri_final_slashes.sub('', uri)
uri = self.normalize_uri_final_slashes.sub('/', uri)
return uri
def _normalizeParameters(self, parameters):
if hit['http_referer']:
referer_groups = self.uri_re.match(hit['http_referer'])
if referer_groups:
hit['extract_referer'] = self._normalizeURI(referer_groups.groupdict())
hit['extract_referer'] = referer_groups.groupdict()
hit['extract_referer']['extract_uri'] = self._normalizeURI(hit['extract_referer']['extract_uri'])
hit['extract_referer']['extract_parameters'] = self._normalizeParameters(hit['extract_referer']['extract_parameters'])
return True
def _decodeTime(self, hit):
default='INFO', type=str,
help='Loglevel in %s, default : %s' % (['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'], 'INFO'))
parser.add_argument('-r', '--reset', dest='reset', action='store_true',
parser.add_argument('-r', '--reset', dest='reset',
default=False,
help='Reset analysis to a specific date (month/year)')

Archive Download the corresponding diff file

Branches

Tags