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

URL-encode dictionary keys #1377

Merged
merged 1 commit into from
Nov 8, 2018
Merged

URL-encode dictionary keys #1377

merged 1 commit into from
Nov 8, 2018

Conversation

ob-stripe
Copy link
Contributor

r? @remi-stripe
cc @stripe/api-libraries @karlr-stripe

Ensures that dictionary keys (typically, metadata keys) are URL-encoded. Otherwise, if a metadata key contains a hash mark character #, the requestor interprets it as a fragment delimiter and doesn't send the character and the rest of the string to the server.

Fixes #1376.

Copy link
Contributor

@remi-stripe remi-stripe left a comment

Choose a reason for hiding this comment

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

We likely should release this as a minor before we release the major version today. This would decrease the number of people on a version that does not properly encode values

@ob-stripe
Copy link
Contributor Author

On it.

@ob-stripe ob-stripe merged commit c45a4e4 into master Nov 8, 2018
@ob-stripe ob-stripe deleted the ob-fix-1376 branch November 8, 2018 15:27
@ob-stripe
Copy link
Contributor Author

Released as 20.4.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants