1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-25 09:30:31 +00:00

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

This commit is contained in:
OzzieIsaacs 2017-09-16 18:53:33 +02:00
commit 7acf4d40a4

View File

@ -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: