mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 10:25:34 +01:00
Fix #4783 (issue when importing an HTML file with an a/@href containing &)
This commit is contained in:
parent
17c0f31808
commit
d65f169f61
1 changed files with 4 additions and 1 deletions
|
|
@ -408,7 +408,10 @@ def resource_adder(self, link_, base=None):
|
|||
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…
Reference in a new issue