diff options
author | Ad Timmering <awtimmering@gmail.com> | 2021-11-26 10:44:54 +0900 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-01-07 12:25:06 +0100 |
commit | bdf3e156b4b47d45b8e37823164b598afc533ce0 (patch) | |
tree | e27b8a05d1fe76478e06e5114a4f4aa86a5942ab /django/http/request.py | |
parent | fe76944269c13d59f8bb3bc1cfff7ab6443777e4 (diff) | |
download | django-bdf3e156b4b47d45b8e37823164b598afc533ce0.tar.gz |
Fixed #28628 -- Changed \d to [0-9] in regexes where appropriate.
Diffstat (limited to 'django/http/request.py')
-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 c7922e59e9..5971203261 100644 --- a/django/http/request.py +++ b/django/http/request.py @@ -23,7 +23,7 @@ from django.utils.regex_helper import _lazy_re_compile from .multipartparser import parse_header RAISE_ERROR = object() -host_validation_re = _lazy_re_compile(r"^([a-z0-9.-]+|\[[a-f0-9]*:[a-f0-9\.:]+\])(:\d+)?$") +host_validation_re = _lazy_re_compile(r"^([a-z0-9.-]+|\[[a-f0-9]*:[a-f0-9\.:]+\])(:[0-9]+)?$") class UnreadablePostError(OSError): |