Remove the trailing slash

This commit is contained in:
Joona Hoikkala 2019-12-13 19:29:56 +02:00
parent 4127e2f6cb
commit efbc18d787
No known key found for this signature in database
GPG key ID: D5AA86BBF9B29A5C

View file

@ -628,7 +628,8 @@ class ApacheParser(object):
found = re.search(block, path[startidx:], flags=re.IGNORECASE)
while found:
if found:
block_paths.append(path[:found.end()])
# Don't include the trailing slash
block_paths.append(path[:found.end()-1])
startidx = found.end()
found = re.search(block, path[startidx:], flags=re.IGNORECASE)
# We want the list to be from the leaf to the root