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

adapt to Rails 7.0 defaults #318

Merged
merged 2 commits into from
Sep 28, 2022
Merged

adapt to Rails 7.0 defaults #318

merged 2 commits into from
Sep 28, 2022

Conversation

craisp
Copy link
Contributor

@craisp craisp commented Jul 20, 2022

Since 7.0, Rails protects against redirecting to external hosts
https://api.rubyonrails.org/classes/ActionController/Redirecting.html#method-i-redirect_to-label-Open+Redirect+protection
This change adapts to this by adding the option allow_other_host to the method call

Since 7.0, Rails protects against redirecting to external hosts
https://api.rubyonrails.org/classes/ActionController/Redirecting.html#method-i-redirect_to-label-Open+Redirect+protection
This change adapts to this by adding the option `allow_other_host` to the method call
@craisp craisp marked this pull request as ready for review July 20, 2022 12:16
@olimart
Copy link

olimart commented Jul 25, 2022

@joshbuker can you allow to run CI please

@joshbuker
Copy link
Member

joshbuker commented Sep 28, 2022

No idea why CI is borked, going to merge main and kick that off again. it's already up-to-date, and I can't force push.

Guess I'll test locally.

Copy link
Member

@joshbuker joshbuker left a comment

Choose a reason for hiding this comment

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

Tested Ruby v3, Rails v6 which was my main concern (backwards compatibility).

Specs passed, merging.

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