mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #7481 (Creating EPUBs with non-standard internal html split names)
This commit is contained in:
parent
77efdeaa53
commit
e9a8666518
@ -401,6 +401,8 @@ class MobiReader(object):
|
||||
elem.getparent().remove(elem)
|
||||
fname = self.name.encode('ascii', 'replace')
|
||||
fname = re.sub(r'[\x08\x15\0]+', '', fname)
|
||||
if not fname:
|
||||
fname = 'dummy'
|
||||
htmlfile = os.path.join(output_dir,
|
||||
ascii_filename(fname) + '.html')
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user