diff options
| author | Tim Graham <timograham@gmail.com> | 2016-08-11 10:41:10 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-08-11 13:54:39 -0400 |
| commit | ff0a5aff4f5eb2f55fa4c45d316084ee4d462d6d (patch) | |
| tree | 21f2cbc6efa7f35d2d73a28d32f4bc4783250024 /django | |
| parent | 4c2a6fe75bad592972eafc79debc35bf944f38f7 (diff) | |
Fixed #27046 -- Supported IPv6-formatted IPv4 addresses in host validation.
Thanks LaMont Jones for the report and patch.
Diffstat (limited to 'django')
| -rw-r--r-- | django/http/request.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/http/request.py b/django/http/request.py index 1dedf5d899..271ab30557 100644 --- a/django/http/request.py +++ b/django/http/request.py @@ -24,7 +24,7 @@ from django.utils.six.moves.urllib.parse import ( ) RAISE_ERROR = object() -host_validation_re = re.compile(r"^([a-z0-9.-]+|\[[a-f0-9]*:[a-f0-9:]+\])(:\d+)?$") +host_validation_re = re.compile(r"^([a-z0-9.-]+|\[[a-f0-9]*:[a-f0-9\.:]+\])(:\d+)?$") class UnreadablePostError(IOError): |
