mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-03-09 11:23:43 -04:00
Fix #2142345 [Converting ODT to EPUB jpeg images indicates not found](https://bugs.launchpad.net/calibre/+bug/2142345)
This commit is contained in:
parent
1be720c429
commit
4eabb38427
@ -34,7 +34,7 @@ class Extract(ODF2XHTML):
|
||||
for name in zf.namelist():
|
||||
if name.startswith('Pictures') and name not in {'Pictures', 'Pictures/'}:
|
||||
dest = os.path.abspath(os.path.join(base, name))
|
||||
if os.path.commonprefix([base, dest]) != dest:
|
||||
if os.path.commonprefix([base, dest]) != base:
|
||||
continue
|
||||
data = zf.read(name)
|
||||
with open(dest, 'wb') as f:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user