Skip to content

Remove spaces from base64-encoded content#150

Open
Peter2121 wants to merge 1 commit into
mnako:mainfrom
Peter2121:main
Open

Remove spaces from base64-encoded content#150
Peter2121 wants to merge 1 commit into
mnako:mainfrom
Peter2121:main

Conversation

@Peter2121
Copy link
Copy Markdown

Some software creates mails with multi-line base64-encoded content with spaces inside (at the beginning of lines). Golang base64 decoder does not remove them, so such content is not decoded properly. It seems that this problem will be fixed in Golang 1.26. This PR fixes the problem, removing spaces from base64-encoded content.

@Peter2121 Peter2121 requested a review from mnako as a code owner May 26, 2025 09:21
@mnako
Copy link
Copy Markdown
Owner

mnako commented Jul 27, 2025

Thank you for this contribution, @Peter2121 .

If you could add test cases following our existing patterns to show an example of base64-encoded content that needs spaces removed we will be happy to review this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants