Fix relative urls that do not start with '/'

dependabot/pip/master/sphinx-6.1.3
xywei 4 years ago
parent 9f2446c444
commit 1d4657b714
No known key found for this signature in database
GPG Key ID: F038F98DF34297D9

@ -61,6 +61,10 @@ def extract_url(xpath_results, search_url):
# fix relative url to the search engine
url = urljoin(search_url, url)
# fix relative urls that fall through the crack
if '://' not in url:
url = urljoin(search_url, url)
# normalize url
url = normalize_url(url)

Loading…
Cancel
Save