浏览代码

Refs #21231 -- Corrected parse_qsl() fallback.

An oversight in fd209f62f1d83233cc634443cfac5ee4328d98b8.
Tim Graham 4 年之前
父节点
当前提交
83dea65ed6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      django/http/request.py

+ 1 - 1
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