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

Handle ISO-8859-1 encoded strings in Notification #382

Merged
merged 3 commits into from
Mar 28, 2024

Conversation

casperisfine
Copy link
Contributor

Paypal tend to send data encoded in ISO-8859-1, we should return only valid UTF-8 encoded strings.

@casperisfine casperisfine force-pushed the paypal-ipn-encoding branch 2 times, most recently from 9e2b952 to d29b874 Compare July 11, 2023 07:24
@casperisfine
Copy link
Contributor Author

@BranLiang could you have a look into this please?

Paypal tend to send data encoded in ISO-8859-1, we should
return only valid UTF-8 encoded strings.
@casperisfine
Copy link
Contributor Author

Not too sure what is going on with the remaining failure, I can't reproduce it locally.

@casperisfine
Copy link
Contributor Author

Ok, by making assert_in_delta very sligthly more permissive, it fixed it.

Copy link

@adrianna-chang-shopify adrianna-chang-shopify left a comment

Choose a reason for hiding this comment

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

LGTM 👍 I believe it's the development dependency on rails that's causing compat issues on Rails edge? 🤔 I can't see that we need a full dependency on rails (activesupport / actionpack / actionview should be sufficient), can we just remove that?

And while we're at it, would it make sense to add Ruby 3 to the CI matrix?

@casperisfine
Copy link
Contributor Author

I'd rather keep the changes as small as possible given I don't have merge permissions on that repo.

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.

3 participants