mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-03 14:40:32 +00:00
fix intern url of file: links
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2635 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
e5266c52d0
commit
fec843814c
1 changed files with 3 additions and 1 deletions
|
|
@ -266,6 +266,8 @@ class FileUrl (urlbase.UrlBase):
|
|||
if not url:
|
||||
return None
|
||||
parts = linkcheck.strformat.url_unicode_split(url)
|
||||
path = parts[2]
|
||||
path, params = linkcheck.url.splitparams(parts[2])
|
||||
segments = path.split('/')[:-1]
|
||||
path = "/".join(segments)
|
||||
return "file://%s" % re.escape(path)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue