mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #26204 -- Reallowed dashes in top-level domains for URLValidator.
Thanks Shai Berger for the review.
This commit is contained in:
@@ -6,7 +6,7 @@ http://.com
|
||||
http://invalid-.com
|
||||
http://-invalid.com
|
||||
http://invalid.com-
|
||||
http://invalid.c-m
|
||||
http://invalid.-com
|
||||
http://inv-.alid-.com
|
||||
http://inv-.-alid.com
|
||||
file://localhost/path
|
||||
@@ -33,6 +33,8 @@ http:// shouldfail.com
|
||||
:// should fail
|
||||
http://foo.bar/foo(bar)baz quux
|
||||
http://-error-.invalid/
|
||||
http://dashinpunytld.trailingdot.xn--.
|
||||
http://dashinpunytld.xn---
|
||||
http://-a.b.co
|
||||
http://a.b-.co
|
||||
http://a.-b.co
|
||||
|
||||
Reference in New Issue
Block a user