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

fix: replace tokens in URL b/c curly braces are illegal #171

Merged
merged 1 commit into from
Jun 22, 2022

Conversation

bjagg
Copy link
Member

@bjagg bjagg commented Jun 21, 2022

Tokens missing user attribute matches were left in the URL. This leaves curly braces in the URL which are illegal characters. This PR removes tokens from the URL (added unit tests) but leaves tokens in forms alone. This is asymmetrical; however a form field may have valid need for these characters.

Copy link
Contributor

@jonathanmtran jonathanmtran left a comment

Choose a reason for hiding this comment

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

I tested with http://localhost:8080/?uid={user.login.id}&foo={bar}&baz/{uid} and see the following in the access log

127.0.0.1 - - [22/Jun/2022:00:39:20 +0000] "GET /?uid=admin&foo=&baz/admin HTTP/1.1" 200 2093

Copy link
Collaborator

@loulou2u loulou2u left a comment

Choose a reason for hiding this comment

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

🥇

@loulou2u loulou2u merged commit 6335bfc into uPortal-Project:master Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants