Message 263043 - Python tracker

Message263043

Author Anthony Sottile
Recipients Anthony Sottile
Date 2016-04-08.20:48:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1460148485.6.0.00224363970956.issue26717@psf.upfronthosting.co.za>
In-reply-to
Content
Patch attached with test.

In summary:

A request to the url b'/\x80' appears to the application as a request to b'\xc2\x80' -- The issue being the latin1 decoded PATH_INFO is re-encoded as UTF-8 and then decoded as latin1

(on the wire) b'\x80' -(decode latin1)-> u'\x80' -(encode utf-8)-> b'\xc2\x80' -(decode latin1)-> b'\xc2\x80'

My patch cuts out the encode(utf-8)->decode(latin1)
History
Date User Action Args
2016-04-08 20:48:05Anthony Sottilesetrecipients: + Anthony Sottile
2016-04-08 20:48:05Anthony Sottilesetmessageid: <1460148485.6.0.00224363970956.issue26717@psf.upfronthosting.co.za>
2016-04-08 20:48:05Anthony Sottilelinkissue26717 messages
2016-04-08 20:48:05Anthony Sottilecreate