Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Support decoding of Base64 with intermediary padding. #3
Some base64 encoders in the wild incorrectly pad data before the end of
This patch makes the decoder tolerant to this kind of nonsense.
+1 to what @garydgregory suggested. I'd prefer to keep it strict by default, and have an option to make it accept this other format. Or maybe a different Base64 decoder (we currently support only RFC2045's Base64 format). And there are conflicts in the PR, so would be nice if it could be updated to fix/merge the conflicts too :-)