Skip to content

json: properly escape cwd and args #691

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

Conversation

vassilit
Copy link
Collaborator

@vassilit vassilit commented Mar 2, 2025

as they may contain any char but \0.

Closes: #682

@vassilit vassilit added the bug label Mar 2, 2025
@vassilit vassilit self-assigned this Mar 2, 2025
@vassilit vassilit added this to the 2.10.3 To Be Determined milestone Mar 2, 2025
as they may contain any char but \0.
@vassilit vassilit force-pushed the 682-rmlint-writes-non-compliant-json-if-quotes-are-passed-at-the-command-line branch from 56fe6a1 to afe190a Compare March 2, 2025 20:48
@vassilit
Copy link
Collaborator Author

vassilit commented Mar 2, 2025

This is better fixed in develop, by using JSON-Glib (but --without-json-glib may have to disappear), but for 2.10.3, this bug fix is enough.

Related: #480

Copy link
Collaborator

@RayOei RayOei left a comment

Choose a reason for hiding this comment

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

👍

@RayOei RayOei merged commit 4934861 into master Mar 3, 2025
1 check passed
@vassilit vassilit deleted the 682-rmlint-writes-non-compliant-json-if-quotes-are-passed-at-the-command-line branch March 3, 2025 16:34
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.

rmlint writes non-compliant JSON if quotes are passed at the command line
2 participants