mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-20 20:31:53 +00:00
Fix anchor comments in UrlBase
Parent url query not stripped since:
4a0c63aa ("Fix joining of URLs when parent URL has CGI parameter.", 2011-02-08)
This commit is contained in:
parent
2cbff49221
commit
a29750c57f
1 changed files with 2 additions and 2 deletions
|
|
@ -458,7 +458,7 @@ class UrlBase:
|
|||
self.base_ref = urljoin(self.parent_url, self.base_ref)
|
||||
self.url = urljoin(self.base_ref, base_url)
|
||||
elif self.parent_url:
|
||||
# strip the parent url query and anchor
|
||||
# strip the parent url anchor
|
||||
urlparts = list(urllib.parse.urlsplit(self.parent_url))
|
||||
urlparts[4] = ""
|
||||
parent_url = urlutil.urlunsplit(urlparts)
|
||||
|
|
@ -512,7 +512,7 @@ class UrlBase:
|
|||
urlparts[1] = "%s@%s" % (self.userinfo, host)
|
||||
else:
|
||||
urlparts[1] = host
|
||||
# safe anchor for later checking
|
||||
# save anchor for later checking
|
||||
self.anchor = split.fragment
|
||||
if self.anchor is not None:
|
||||
assert isinstance(self.anchor, str), repr(self.anchor)
|
||||
|
|
|
|||
Loading…
Reference in a new issue