Browse Source

Merge branch 'merge' into merge-all

Thomas Waldmann 10 năm trước cách đây
mục cha
commit
b14a6bc3c1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      attic/helpers.py

+ 1 - 1
attic/helpers.py

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