Skip to content
Snippets Groups Projects
Commit eca21781 authored by nkour's avatar nkour
Browse files

fix len to not take into account the extension (we pass full filename anyways)

parent b3bf080e
No related branches found
No related tags found
No related merge requests found
......@@ -703,8 +703,8 @@ def sanitize_filename(filename):
if os.name == 'nt':
filename = filename.replace('?', '').replace(':', '').replace('!', '')\
.replace('"', "'")
# 48 is the limit; 44 is used to account for the extenstion.
if len(filename) > 44:
filename = filename[0:44]
# 48 is the limit
if len(filename) > 48:
filename = filename[0:48]
return filename
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment