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:
calvin 2005-05-22 20:27:32 +00:00
parent e5266c52d0
commit fec843814c

View file

@ -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)