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

Prevent changing host through params #1391

Conversation

AndersGM
Copy link
Contributor

@AndersGM AndersGM commented Jan 11, 2023

Currently, it is possible to change the host simply by passing a host through params. This way, visiting example.com/people?host=some_other_domain would then have sort_links with http://some_other_domain/people...

@AndersGM AndersGM force-pushed the prevent-changing-host-through-params branch 2 times, most recently from 4cc8317 to 8d653c1 Compare January 11, 2023 07:39
@deivid-rodriguez deivid-rodriguez force-pushed the prevent-changing-host-through-params branch from 24b1617 to c140017 Compare January 26, 2023 11:35
Copy link
Contributor

@deivid-rodriguez deivid-rodriguez left a comment

Choose a reason for hiding this comment

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

Thanks so much!

@deivid-rodriguez deivid-rodriguez enabled auto-merge (squash) January 26, 2023 11:35
@deivid-rodriguez deivid-rodriguez merged commit 555d558 into activerecord-hackery:main Jan 26, 2023
@AndersGM AndersGM deleted the prevent-changing-host-through-params branch January 26, 2023 13:36
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.

2 participants