Commit dfd3b408 authored by OzzieIsaacs's avatar OzzieIsaacs

Fix #325

parent bde92113
...@@ -266,7 +266,7 @@ def get_valid_filename(value, replace_whitespace=True): ...@@ -266,7 +266,7 @@ def get_valid_filename(value, replace_whitespace=True):
""" """
if value[-1:] == u'.': if value[-1:] == u'.':
value = value[:-1]+u'_' value = value[:-1]+u'_'
value = value.replace("/", "_").replace(":", "_") value = value.replace("/", "_").replace(":", "_").strip('\0')
if use_unidecode: if use_unidecode:
value=(unidecode.unidecode(value)).strip() value=(unidecode.unidecode(value)).strip()
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment