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

Escape contents of source document snippet for JsonLocation._appendSourceDesc() #658

Closed
cowtowncoder opened this issue Dec 5, 2020 · 0 comments
Milestone

Comments

@cowtowncoder
Copy link
Member

Currently a leading snippet of contents parsed is included in JsonLocation description; all characters are just included as-is. But it would make sense to ensure that non-printable characters (control characters in particular) are escaped and not just printed out, as these descriptions are often simply printed out as-is into application logs and control characters (like linefeeds, tabs) may be problematic in such cases.

cowtowncoder added a commit that referenced this issue Mar 14, 2021
cowtowncoder added a commit that referenced this issue Mar 31, 2021
@cowtowncoder cowtowncoder added this to the 2.13.0 milestone Apr 7, 2021
@cowtowncoder cowtowncoder changed the title Escape contents of source document for JsonLocation._appendSourceDesc() Escape contents of source document snippet for JsonLocation._appendSourceDesc() Apr 7, 2021
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

No branches or pull requests

1 participant