summaryrefslogtreecommitdiff
path: root/django/http/request.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2020-09-07 00:25:56 -0400
committerGitHub <noreply@github.com>2020-09-07 06:25:56 +0200
commit83dea65ed649b5e80111017cd5c476c636872b2d (patch)
treead23d6c98753ca6de82886e0668d9b6e3254ecb6 /django/http/request.py
parentd2d08c8cf6ed601d52e25cb8fc7944d39b5ed56e (diff)
downloaddjango-83dea65ed649b5e80111017cd5c476c636872b2d.tar.gz
Refs #21231 -- Corrected parse_qsl() fallback.
An oversight in fd209f62f1d83233cc634443cfac5ee4328d98b8.
Diffstat (limited to 'django/http/request.py')
-rw-r--r--django/http/request.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/http/request.py b/django/http/request.py
index addcf05329..2488bf9ccd 100644
--- a/django/http/request.py
+++ b/django/http/request.py
@@ -29,7 +29,7 @@ from .multipartparser import parse_header
# detect whether the max_num_fields argument is available as this security fix
# was backported to Python 3.6.8 and 3.7.2, and may also have been applied by
# downstream package maintainers to other versions in their repositories.
-if func_supports_parameter(parse_qsl, 'max_num_fields'):
+if not func_supports_parameter(parse_qsl, 'max_num_fields'):
from django.utils.http import parse_qsl