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

Big pass on escaping and urls #911

Merged
merged 2 commits into from
Feb 19, 2025
Merged

Big pass on escaping and urls #911

merged 2 commits into from
Feb 19, 2025

Conversation

jnunemaker
Copy link
Collaborator

Fixes #901. Likely fixes all the rack protection issues people have. I realized that rack protection includes several things by default unless you exclude them. My bad. I thought I was only "use"-ing authenticity token. Hopefully this fixes some issues for others because now that is all I'm using.

Before it was escaping everything passed to redirect and thus only using escape_path. But I need it all escaped so I can start making ../../ work.
I only ever wanted to use rack protection authenticity token and thought that is what I was doing. I now realize they include several by default unless you explicitly turn them off. Instead i'm just going to include what i want which is auth token stuff.
@jnunemaker jnunemaker self-assigned this Feb 19, 2025
@jnunemaker jnunemaker merged commit 3683318 into main Feb 19, 2025
92 checks passed
@jnunemaker jnunemaker deleted the escape-ui-keys branch February 19, 2025 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant