remove characters from title

Note that this should be a whitelist of characters instead of a blacklist approach
This commit is contained in:
Peter Mosmans 2016-06-13 19:43:43 +10:00
parent aec83057ca
commit d4d346e6cb

View File

@ -244,7 +244,7 @@ def valid_filename(filename):
"""
valid_filename = ''
for char in filename.strip():
if char in [':', '/', '.', '\\', ' ', '[', ']', '(', ')']:
if char in [':', '/', '.', '\\', ' ', '[', ']', '(', ')', '\'']:
if len(char) and valid_filename[-1] != '-':
valid_filename += '-'
else: