Commit 7acf4d40 authored by OzzieIsaacs's avatar OzzieIsaacs

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

parents 2ef6dc30 cda733f4
......@@ -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:
......
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