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(server): avoid type confusion #8124

Merged
merged 2 commits into from
Feb 3, 2023
Merged

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Feb 3, 2023

Summary

Resolves this "critical" alert detected by CodeQL.

Problem

HTTP request parameters may be either an array or a string.

Solution

Convert the parameters in question to string.


How did you test this change?

Verified the types as inferred by TypeScript.

@caugner caugner requested a review from LeoMcA February 3, 2023 10:08
HTTP request parameters may be either an array or a string.
@caugner caugner force-pushed the fix-codeql-type-confusion branch from a4cd349 to 918e051 Compare February 3, 2023 10:15
Copy link
Member

@LeoMcA LeoMcA left a comment

Choose a reason for hiding this comment

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

one query, otherwise looks good!

server/translations.ts Show resolved Hide resolved
@LeoMcA LeoMcA merged commit f2c2e66 into mdn:main Feb 3, 2023
@caugner caugner deleted the fix-codeql-type-confusion branch February 3, 2023 15:28
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