Merge remote-tracking branch 'adv/escape-filename'

pull/346/head
OzzieIsaacs 7 years ago
commit 7acf4d40a4

@ -266,6 +266,7 @@ def get_valid_filename(value, replace_whitespace=True):
"""
if value[-1:] == u'.':
value = value[:-1]+u'_'
value = value.replace("/", "_").replace(":", "_")
if use_unidecode:
value=(unidecode.unidecode(value)).strip()
else:

Loading…
Cancel
Save