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 incorrect numeric settings handling on the server side #101

Merged
merged 1 commit into from
May 29, 2024

Conversation

julien-nc
Copy link
Member

@julien-nc julien-nc commented May 29, 2024

Arbitrary choice to use null to know when we should delete a setting value.
parseInt returns NaN with invalid values, this becomes null in the network request.
This should be pretty safe.

refs #98

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
@julien-nc julien-nc added bug Something isn't working 3. to review labels May 29, 2024
@julien-nc julien-nc requested a review from kyteinsky May 29, 2024 12:44
Copy link
Contributor

@kyteinsky kyteinsky left a comment

Choose a reason for hiding this comment

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

@julien-nc julien-nc merged commit c02db29 into main May 29, 2024
12 checks passed
@delete-merged-branch delete-merged-branch bot deleted the fix/98/numeric-settings branch May 29, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants