[issue34104] email.message.get_payload should enforce correct encoding

2018-07-12 Thread Serge Droz
Change by Serge Droz : -- type: -> security ___ Python tracker <https://bugs.python.org/issue34104> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue34104] email.message.get_payload should enforce correct encoding

2018-07-12 Thread Serge Droz
New submission from Serge Droz : The issue is really this: https://noxxi.de/research/mime-5-easy-steps-to-bypass-av.html get_payload should with decode=Treu should check the validity of the syntax and throw an error if it is not. This would happen if the underlying call to base64.decode

[issue14329] proxy_bypass_macosx_sysconf does not handle singel ip addresses correctly

2012-03-15 Thread Serge Droz
New submission from Serge Droz : On MacOS in urllib the function proxy_bypass_macosx_sysconf does not handle proxy settings which are just IP addresses correctly: If there is any IP address, always true is reported. Reason: the mask is calculated wrong. The attached patch fixes this. NB This