One example is '.xn--p1ai' which is punycode-encoded '.рф' (IDN TLD for
Russian Federation)
This is a regression since 1.7.x
(I'm going to post pull request when I get ticket number)
--
Ticket URL: <https://code.djangoproject.com/ticket/25059>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_docs: => 0
* needs_tests: => 0
* needs_better_patch: => 0
Old description:
> There are some valid IDN top level domains with dashes which is not
> validated by URLValidator.
>
> One example is '.xn--p1ai' which is punycode-encoded '.рф' (IDN TLD for
> Russian Federation)
>
> This is a regression since 1.7.x
>
> (I'm going to post pull request when I get ticket number)
New description:
There are some valid IDN top level domains with dashes which is not
validated by URLValidator.
One example is '.xn--p1ai' which is punycode-encoded '.рф' (IDN TLD for
Russian Federation)
This is a regression since 1.7.x
Pull request: https://github.com/django/django/pull/4949
--
--
Ticket URL: <https://code.djangoproject.com/ticket/25059#comment:1>
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/25059#comment:2>
* severity: Normal => Release blocker
--
Ticket URL: <https://code.djangoproject.com/ticket/25059#comment:3>
Comment (by bmispelon):
For reference, the commit that introduced the regression is
2e65d56156b622e2393dee1af66e9c799a51924f.
--
Ticket URL: <https://code.djangoproject.com/ticket/25059#comment:4>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/25059#comment:5>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"bc98bc56a52860688ea0ae2ec7b9e59ddb72a811" bc98bc56]:
{{{
#!CommitTicketReference repository=""
revision="bc98bc56a52860688ea0ae2ec7b9e59ddb72a811"
Fixed #25059 -- Allowed Punycode TLDs in URLValidator
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25059#comment:6>
Comment (by Tim Graham <timograham@…>):
In [changeset:"8c417564c7317a46883a779b765e54a28dbc7164" 8c417564]:
{{{
#!CommitTicketReference repository=""
revision="8c417564c7317a46883a779b765e54a28dbc7164"
[1.8.x] Fixed #25059 -- Allowed Punycode TLDs in URLValidator
Backport of bc98bc56a52860688ea0ae2ec7b9e59ddb72a811 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25059#comment:7>