Skip to content

Prevent changing host through params#1391

Merged
deivid-rodriguez merged 1 commit intoactiverecord-hackery:mainfrom
AndersGM:prevent-changing-host-through-params
Jan 26, 2023
Merged

Prevent changing host through params#1391
deivid-rodriguez merged 1 commit intoactiverecord-hackery:mainfrom
AndersGM:prevent-changing-host-through-params

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