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 urlsafe MessageVerifier not to include padding #45424

Merged

Conversation

shouichi
Copy link
Contributor

Summary

urlsafe option was introduced to MessageVerifier in
09c3f36 but it can generate strings
containing padding character ("=") which is not urlsafe.

Fix not to pad when base64 encode.

Sorry, I forgot to specify the option!

urlsafe option was introduced to MessageVerifier in
09c3f36 but it can generate strings
containing padding character ("=") which is not urlsafe.

Fix not to pad when base64 encode.
@byroot byroot merged commit 2f5dcb7 into rails:main Jun 22, 2022
@shouichi shouichi deleted the remove-padding-from-urlsafe-message-verifier branch June 24, 2022 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants