GitHub user codematters opened a pull request: https://github.com/apache/commons-codec/pull/3
Support decoding of Base64 with intermediary padding. Some base64 encoders in the wild incorrectly pad data before the end of data. For instance, the string "testtesttest" might be encoded as "dGVzdA==dGVzdA==dGVzdA==" instead of "dGVzdHRlc3R0ZXN0". This is, technically speaking, a bug. This patch makes the decoder tolerant to this kind of nonsense. Intermediary padding is processed and then decoding carries on as though a new string were provided. You can merge this pull request into a Git repository by running: $ git pull https://github.com/INTIXnv/commons-codec trunk Alternatively you can review and apply these changes as the patch at: https://github.com/apache/commons-codec/pull/3.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #3 ---- commit 9c5806cb76823db8bf72ffdddb3a064b05d93635 Author: Bram <gitb...@codematters.be> Date: 2015-08-20T13:13:17Z Support decoding of Base64 with intermediary padding. Some base64 encoders in the wild incorrectly pad data before the end of data. For instance, the string "testtesttest" might be encoded as "dGVzdA==dGVzdA==dGVzdA==" instead of "dGVzdHRlc3R0ZXN0". This is, technically speaking, a bug. This patch makes the decoder tolerant to this kind of nonsense. Intermediary padding is processed and then decoding carries on as though a new string were provided. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org