mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-23 14:41:43 +00:00
Escape ".." in path regexp properly.
This commit is contained in:
parent
4ab4ecc7af
commit
89e9528d0b
1 changed files with 1 additions and 1 deletions
|
@ -498,7 +498,7 @@ def remove_surrogates(s, errors='replace'):
|
|||
return s.encode('utf-8', errors).decode('utf-8')
|
||||
|
||||
|
||||
_safe_re = re.compile('^((..)?/+)+')
|
||||
_safe_re = re.compile('^((\.\.)?/+)+')
|
||||
|
||||
|
||||
def make_path_safe(path):
|
||||
|
|
Loading…
Reference in a new issue