1
0
Fork 0
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:
Lauri Alanko 2015-04-03 00:19:33 +03:00
parent 4ab4ecc7af
commit 89e9528d0b

View file

@ -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):