diff options
| author | Tim Graham <timograham@gmail.com> | 2018-08-02 21:56:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-02 21:56:26 -0400 |
| commit | d8e2be459f97f1773c7edf7d37de180139146176 (patch) | |
| tree | bee96d62219e6340adfb7d2bca22176bbf3c5bf8 /django/http/request.py | |
| parent | 2e3ba9f5927048655fffa620bbac4f8b048056a4 (diff) | |
Fixed #29627 -- Fixed QueryDict.urlencode() crash with non-string values.
Regression in 7d96f0c49ab750799860e42716d7105e11de44de.
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 05aa89252b..fdd1cf8c67 100644 --- a/django/http/request.py +++ b/django/http/request.py @@ -511,7 +511,7 @@ class QueryDict(MultiValueDict): return urlencode({k: v}) for k, list_ in self.lists(): output.extend( - encode(k.encode(self.encoding), v.encode(self.encoding)) + encode(k.encode(self.encoding), str(v).encode(self.encoding)) for v in list_ ) return '&'.join(output) |
