mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-23 23:54:44 +00:00
use idna domain for intern patterns
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1979 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
72290074ac
commit
1166804eb0
1 changed files with 1 additions and 0 deletions
|
|
@ -158,6 +158,7 @@ def set_intern_url (url, klass, config):
|
|||
linkcheck.checker.httpsurl.HttpsUrl,
|
||||
linkcheck.checker.ftpurl.FtpUrl]:
|
||||
domain = urlparse.urlsplit(url)[1]
|
||||
domain, is_idn = linkcheck.url.idna_encode(domain)
|
||||
if domain:
|
||||
domain = "://%s" % re.escape(domain)
|
||||
linkcheck.log.debug(linkcheck.LOG_CHECK, "Add intern domain %r",
|
||||
|
|
|
|||
Loading…
Reference in a new issue