mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Put back the sanitize after split on slashes.
This commit is contained in:
parent
25905a349c
commit
211bb81113
@ -166,6 +166,7 @@ def get_components(template, mi, id, timefmt='%b %Y', length=250,
|
|||||||
components = safe_formatter.safe_format(template, format_args, '', mi,
|
components = safe_formatter.safe_format(template, format_args, '', mi,
|
||||||
sanitize=sanitize_func)
|
sanitize=sanitize_func)
|
||||||
components = [x.strip() for x in components.split('/') if x.strip()]
|
components = [x.strip() for x in components.split('/') if x.strip()]
|
||||||
|
components = [sanitize_func(x) for x in components if x]
|
||||||
if not components:
|
if not components:
|
||||||
components = [str(id)]
|
components = [str(id)]
|
||||||
components = [x.encode(filesystem_encoding, 'replace') if isinstance(x,
|
components = [x.encode(filesystem_encoding, 'replace') if isinstance(x,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user