1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-27 02:08:54 +00:00

Merge PR #265 - fixes bug #268 - Merge branch 'fix_safe_re' of https://github.com/lealanko/attic into merge

This commit is contained in:
Thomas Waldmann 2015-04-04 11:05:52 +02:00
commit 1bf5e9ee29

View file

@ -510,7 +510,7 @@ def remove_surrogates(s, errors='replace'):
return s.encode('utf-8', errors).decode('utf-8') return s.encode('utf-8', errors).decode('utf-8')
_safe_re = re.compile('^((..)?/+)+') _safe_re = re.compile('^((\.\.)?/+)+')
def make_path_safe(path): def make_path_safe(path):