#36452: DomainNameValidator forbids digits in TLDs
-----------------------------------+--------------------------------------
Reporter: Shai Berger | Owner: (none)
Type: Bug | Status: closed
Component: Core (Other) | Version: dev
Severity: Normal | Resolution: needsinfo
Keywords: validation domain | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-----------------------------------+--------------------------------------
Changes (by Sarah Boyce):
* cc: Claude Paroz, Mike Edmunds (added)
* resolution: => needsinfo
* status: new => closed
Comment:
I was trying to check if `email.com1` should be valid.
Looking at this list of top level domains (https://www.icann.org/en
/contracted-parties/registry-operators/resources/list-of-top-level-
domains), the only numeric top level domains are prefixed with `XN--`.
This is allowed by our validator.
I think I agree that looking at the RFC, the definition isn't this strict
and digits are allowed without hyphens:
{{{
<domain> ::= <subdomain> | " "
<subdomain> ::= <label> | <subdomain> "." <label>
<label> ::= <letter> [ [ <ldh-str> ] <let-dig> ]
<ldh-str> ::= <let-dig-hyp> | <let-dig-hyp> <ldh-str>
<let-dig-hyp> ::= <let-dig> | "-"
<let-dig> ::= <letter> | <digit>
<letter> ::= any one of the 52 alphabetic characters A through Z in
upper case and a through z in lower case
<digit> ::= any one of the ten digits 0 through 9
}}}
Before we continue, I think we should get confirmation that tlds like
`com1` are valid
--
Ticket URL: <https://code.djangoproject.com/ticket/36452#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/010701975deee5ad-1599f304-6905-4cad-956d-cd79eaa02a88-000000%40eu-central-1.amazonses.com.