diff --git a/attic/helpers.py b/attic/helpers.py index ac5266980..0a9b9b44e 100644 --- a/attic/helpers.py +++ b/attic/helpers.py @@ -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):