Limit cache filenames to 64 chars to prevent long paths from confusing windows

This commit is contained in:
Jay Lee
2015-12-23 06:26:45 -05:00
parent 61a9d0c0a6
commit 2e6811d2d4

View File

@@ -255,8 +255,8 @@ def safename(filename):
filename = re_slash.sub(",", filename)
# limit length of filename
if len(filename)>200:
filename=filename[:200]
if len(filename)>64:
filename=filename[:64]
return ",".join((filename, filemd5))
NORMALIZE_SPACE = re.compile(r'(?:\r\n)?[ \t]+')