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

ensure redirect target path is correctly encoded #6229

Merged
merged 2 commits into from Feb 28, 2021

Conversation

chris48s
Copy link
Member

This fixes a bug that causes setHeader() to throw an unhandled TypeError if the path of the URL we are redirecting to contains unescaped characters which are invalid for a HTTP header.
Note this is only the url path affected. The querystring was already encoded correctly

Refs https://sentry.io/organizations/shields/issues/1867642393

@chris48s chris48s added bug Bugs in badges and the frontend core Server, BaseService, GitHub auth labels Feb 28, 2021
@shields-ci
Copy link

shields-ci commented Feb 28, 2021

Messages
📖 ✨ Thanks for your contribution to Shields, @chris48s!

Generated by 🚫 dangerJS against a331d44

Copy link
Member

@calebcartwright calebcartwright left a comment

Choose a reason for hiding this comment

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

Nice sleuthing 👍

@repo-ranger repo-ranger bot merged commit 0646400 into badges:master Feb 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs in badges and the frontend core Server, BaseService, GitHub auth
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants