Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Recode QUERY_STRING earlier rather than encoding after it has passed through FieldStorage. We were erroneously encoding form data from the body :( Also, note that on python3 cgi.FieldStorage already decodes using utf-8, so either just return that or encode to bytes to we can later decode. This code is particularly insane, but almost impossible to fix properly without vendoring FieldStorage which started decoding it’s inputs in python3 :(
- Loading branch information
Brian Sutherland
committed
Nov 5, 2016
1 parent
39d67bc
commit 85c7000
Showing
2 changed files
with
58 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters