mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-24 18:47:23 +00:00
Fix #325
This commit is contained in:
parent
bde92113d4
commit
dfd3b40865
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user