Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Buffer.from base64 when padding is missing #120

Merged
merged 2 commits into from
Feb 11, 2024

Conversation

richarddavison
Copy link
Collaborator

Issue #, if available:
Fixes: #116

Description of changes:
Changes b64 decoding to forgiving mode that ignores missing padding.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@richarddavison richarddavison merged commit 03bef99 into main Feb 11, 2024
5 checks passed
@richarddavison richarddavison deleted the fix/buffer-b64-padding branch February 11, 2024 21:05
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.

Buffer.from(str, 'base64') fails to decode valid Base64
2 participants