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

Support UTF-8 characters when encoding iframe options to Base64 #160

Merged
merged 2 commits into from
Jan 28, 2021

Conversation

smithki
Copy link
Contributor

@smithki smithki commented Jan 28, 2021

📦 Pull Request

If UTF-8 (non-Latin) characters somehow make it into the encoded iframe options, the encoding function breaks, thus blocking the iframe entirely. This PR introduces a new encoding strategy based on the universal-base64 package.

⚠️ Don't forget to add a semver label!

  • patch: Bug Fix?
  • minor: New Feature?
  • major: Breaking Change?
  • skip-release: It's unnecessary to publish this change.

@smithki smithki added the patch Increment the patch version when merged label Jan 28, 2021
@smithki smithki self-assigned this Jan 28, 2021
@smithki smithki requested a review from Dizigen January 28, 2021 18:13
Dizigen
Dizigen previously approved these changes Jan 28, 2021
Copy link
Contributor

@Dizigen Dizigen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐑

@smithki
Copy link
Contributor Author

smithki commented Jan 28, 2021

Will merge this as soon as the iframe is updated to decode UTF-8 characters also.

@smithki smithki merged commit 14c87fe into master Jan 28, 2021
@smithki smithki deleted the smithki-support-utf8-b64-encode branch January 28, 2021 21:07
@smithki
Copy link
Contributor Author

smithki commented Jan 28, 2021

🚀 PR was released in @magic-sdk/provider@4.1.1, @magic-sdk/react-native@4.1.1, magic-sdk@4.1.1 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants