Remove all trailing slashs of URL before starting analyze

This commit is contained in:
Gregory Soutade
2024-01-30 11:28:10 +01:00
parent d6d216db4d
commit d78739157b
2 changed files with 6 additions and 5 deletions

View File

@@ -75,7 +75,7 @@ class IWLAPostAnalysisTopPages(IPlugin):
uri = r['extract_request']['extract_uri']
if self.index_re.match(uri):
uri = '/'
uri = ''
uri = "%s%s" % (r.get('server_name', ''), uri)