[Checkins] [zopefoundation/zope.publisher] 0b8bde: Redo decoding
GitHub
noreply at github.com
Thu Mar 2 14:26:52 CET 2017
Branch: refs/heads/fix-decoding
Home: https://github.com/zopefoundation/zope.publisher
Commit: 0b8bde06c467bfa077245736aba3f518f6ec5e4b
https://github.com/zopefoundation/zope.publisher/commit/0b8bde06c467bfa077245736aba3f518f6ec5e4b
Author: Brian Sutherland <brian at vanguardistas.net>
Date: 2017-03-02 (Thu, 02 Mar 2017)
Changed paths:
M src/zope/publisher/browser.py
M src/zope/publisher/tests/test_browserrequest.py
Log Message:
-----------
Redo decoding
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 :(
More information about the checkins
mailing list