You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3c2413d
Browse filesBrowse the repository at this point in the historyBrowse files
Reject IDNA-mapped lookalikes in domains and simple hostnames
Python's idna codec implements IDNA 2003, whose nameprep step drops
invisible characters (soft hyphen, zero width space, joiners, variation
selectors), folds compatibility characters such as fullwidth letters,
the Kelvin sign or the long s to ASCII, and splits labels on U+3002 and
similar dots. domain() validated the mapped result, so "example.com"
or "example.com" passed as example.com through domain(),
hostname(), url() and email().
Reject non-ASCII values that are not NFKC-stable or that contain
characters nameprep maps to nothing or treats as a dot. Internationalized
names that need no such mapping, such as "пример.рф" or "straße.de",
are still accepted.
The simple hostname regex used [a-z] with re.IGNORECASE, which also
matches U+0130, U+0131, U+017F and U+212A; add re.ASCII.
0 commit comments