Opened 9 years ago
Last modified 9 years ago
#26204 closed Bug
URLValidator does not accept TLDs with "-"s — at Version 1
Description (last modified by ) ¶
Forwarded from:
http://bugs.debian.org/814372
Previous versions of Django allowed for "-"s in the rightmost component of a hostname. This was tightened in a previous release. While the case for punycode domains was fixed, there's no technical reason to disallow them in any part of a hostname component except for at the beginning or end.
That is to say: http://ubuntu-mirror.my-tld/ubuntu is flagged as an invalid URL, even though the DNS has an IP for it, and apt happily upgrades from the archive mirror that is there.