Opened 5 years ago

Last modified 5 years ago

#30875 closed Bug

Allow IDN domains — at Initial Version

Reported by: Moritz Schaffenroth Owned by: nobody
Component: HTTP handling Version: 2.2
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

You cannot run django with an IDN domain since the django requests are only validated for ascii domains.

See django/http/request.py

...
host_validation_re = re.compile(r"([a-z0-9.-]+|\[[a-f0-9]*:[a-f0-9\.:]+\])(:\d+)?$")
...

Currently when you run django on a IDN domain you get the following error message: "The domain name provided is not valid according to RFC 1034/1035."

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top