x/net/idna: Registration.ToASCII() accepts empty TLD label #47182
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What did you do?
https://go.dev/play/p/oGhflDafvrL
What did you expect to see?
What did you see instead?
It appears if the domain contains an empty TLD label but contains only ASCII characters, then no error is returned. And only for the TLD (empty labels elsewhere return an error as expected).
The text was updated successfully, but these errors were encountered: