mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix #4783 (issue when importing an HTML file with an a/@href containing &)
This commit is contained in:
parent
17c0f31808
commit
d65f169f61
@ -408,7 +408,10 @@ class HTMLInput(InputFormatPlugin):
|
||||
return link_
|
||||
if base and not os.path.isabs(link):
|
||||
link = os.path.join(base, link)
|
||||
link = os.path.abspath(link)
|
||||
try:
|
||||
link = os.path.abspath(link)
|
||||
except:
|
||||
return link_
|
||||
if not os.access(link, os.R_OK):
|
||||
return link_
|
||||
if os.path.isdir(link):
|
||||
|
Loading…
x
Reference in New Issue
Block a user