Skip to content

Fix sanitization bug - #145

Merged
samcoe merged 1 commit into
trunkfrom
sanitization-bug
Nov 20, 2023
Merged

samcoe merged 1 commit into
trunkfrom
sanitization-bug

Conversation

@samcoe

@samcoe samcoe commented Nov 20, 2023 •

Copy link
Copy Markdown
Contributor

Fixes cli/cli#8336

There was a small bug in the logic of the sanitizer where multiple escaped ascii codes in a row would cause invalid JSON to be generated. This PR makes it so this does not happen.

@samcoe samcoe self-assigned this Nov 20, 2023
@samcoe
samcoe marked this pull request as ready for review November 20, 2023 14:02

@andyfeller andyfeller left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@samcoe
samcoe merged commit d32c104 into trunk Nov 20, 2023
@samcoe
samcoe deleted the sanitization-bug branch November 20, 2023 14:56
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.

Viewing a specific issue returns the error invalid character '^' in string escape code

2 participants