limit cache files to 64 chars

This commit is contained in:
Jay Lee 2014-07-09 08:37:44 -04:00
parent 71bb053276
commit c2f5f6275c

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]+')