mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
only follow links on the local machine
This commit is contained in:
parent
22862fd194
commit
e3e999bc37
@ -45,7 +45,9 @@ def update_css(ncss, ocss):
|
||||
ocss[key] = ncss[key]
|
||||
|
||||
def munge_paths(basepath, url):
|
||||
purl = urlparse(unquote(url),)
|
||||
purl = urlparse(unquote(url))
|
||||
if purl[0] not in ('', 'file'):
|
||||
return ('','')
|
||||
path, fragment = purl[2], purl[5]
|
||||
if path:
|
||||
path = path.replace('/', os.sep)
|
||||
|
Loading…
x
Reference in New Issue
Block a user