1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #25637 -- Added URLValidator hostname length validation.

URLValidator now validates the maximum length of a hostname and the
maximum length of all labels inside the hostname.
This commit is contained in:
Raphael Michel
2015-11-07 11:08:16 +01:00
committed by Tim Graham
parent d7a58f285b
commit 82976e5c3f
4 changed files with 22 additions and 4 deletions

View File

@@ -258,7 +258,9 @@ URLs
Validators
^^^^^^^^^^
* ...
* :class:`~django.core.validators.URLValidator` now limits the length of
domain name labels to 63 characters and the total length of domain
names to 253 characters per :rfc:`1034`.
Backwards incompatible changes in 1.10
======================================