#26550: Underscore (_) is not allowed in domain names
-------------------------------+--------------------
Reporter: fed239 | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
I'm using domain name like xxx_yyy.abc.com and I get "Bad Request (400)"
when DEBUG = False.
I happened to be so that split_domain_port(host) from
django/http/request.py returns a pair of empty strings as
host_validation_re doesn't allow underscore.
I agree that according to RFC it's not possible to have underscore in a
hostname, but here we are dealing with domain names and it's totally fine
to have underscore in a domain name.
--
Ticket URL: <https://code.djangoproject.com/ticket/26550>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/049.3d7a59f4939a61f7896c0f0d14b9cf83%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.