mirror of
https://github.com/certbot/certbot.git
synced 2026-06-07 07:42:08 -04:00
Remove the trailing slash
This commit is contained in:
parent
4127e2f6cb
commit
efbc18d787
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue