Message358438
If validate=True is passed to base64.b64decode(), it should raise a binascii.Error if the input contains any character not from the acceptable alphabet.
But it does not raise if the input ends with a single \n. It raises if the input ends with a multiple \n or with any other whitespace character. Only a single \n is accepted.
This is an implementation artifact. A regular exception ending with $ is used to validate an input. But $ matches not only end of string. It matches also an empty string before the trailing \n.
Similar errors are also occurred in other sites. I'll open separate issues for different cases. |
|
Date |
User |
Action |
Args |
2019-12-15 17:21:28 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka |
2019-12-15 17:21:28 | serhiy.storchaka | set | messageid: <1576430488.57.0.854621145537.issue39055@roundup.psfhosted.org> |
2019-12-15 17:21:28 | serhiy.storchaka | link | issue39055 messages |
2019-12-15 17:21:28 | serhiy.storchaka | create | |
|