#12988: Add support of IDN domains for URLField validator.
---------------------------------+------------------------------------------
Reporter: niksite | Owner: nobody
Status: new | Milestone: 1.2
Component: Forms | Version: SVN
Resolution: | Keywords: IDN
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------+------------------------------------------
Changes (by UloPe):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
I am the author of the patch on #9764.
It seems however that the problem you are describing has nothing to do with IDN handling
pre-se but rather that the TLD in your example
(which is one of the [http://www.iana.org/domains/root/db/# IANA IDN test
TLDs] (click on
IDNs)) has "too many" characters for the URLValidator regex which assumes that TLDs have 6 characters at most.
So the solution could be to
either lift the restriction on TLD length or to add special handling for IDN TLDs (which are easily enough to distinguish,
as they begin with "xn--" in IDNA encoded form) to the regex.
--
Ticket URL: <http://code.djangoproject.com/ticket/12988#comment:1>
Django <http://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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.