]> git.ipfire.org Git - thirdparty/dnspython.git/commit
When dealing with an IDNA 2003 non-punycode label, escapify it before unicode
authorBob Halley <halley@dnspython.org>
Mon, 7 Jan 2019 15:35:39 +0000 (07:35 -0800)
committerBob Halley <halley@dnspython.org>
Mon, 7 Jan 2019 15:35:39 +0000 (07:35 -0800)
commit3c22261405da9c0235112d913362132aef681fb8
tree26b731e1d24f971a55a3ad6b6bae921951b959c8
parentdda972af4c15baf963e42c2869b1114a5cf5e31f
When dealing with an IDNA 2003 non-punycode label, escapify it before unicode
conversion.  This ensures that labels with codepoints that need escaping
get it, as opposed to raising an exception because we tried to interpret a
non-UTF-8 sequence as UTF-8.
dns/name.py
tests/test_name.py