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: plain res.send calls #1759

Merged
merged 1 commit into from
Jun 24, 2024
Merged

fix: plain res.send calls #1759

merged 1 commit into from
Jun 24, 2024

Conversation

tkurki
Copy link
Member

@tkurki tkurki commented Jun 16, 2024

Replace plain res.send calls that set mime type to text/html with res.json or set mime type explicitly to text/plain so that there is less chance of injecting html content.

Replace plain res.send calls that set mime type to text/html with
res.json or set mime type explicitly to text/plain so that
there is less chance of injecting html content.
@tkurki tkurki requested a review from sbender9 June 16, 2024 19:21
@tkurki tkurki added the fix label Jun 16, 2024
@tkurki tkurki merged commit d126505 into master Jun 24, 2024
4 of 5 checks passed
@tkurki tkurki deleted the fix-plain-send-calls branch June 24, 2024 18:57
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.

1 participant