Преглед на файлове

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

Thomas Waldmann преди 10 години
родител
ревизия
1bf5e9ee29
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      attic/helpers.py

+ 1 - 1
attic/helpers.py

@@ -510,7 +510,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):