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

Control characters are escaped in suggestions JSON #1023

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

veloman-yunkan
Copy link
Collaborator

Fixes #1020

The fix is tested using only a unit test for the helper utility. No test running on real ZIM data is provided (because the problematic case is hardly represented in our test ZIM data).

Copy link

codecov bot commented Nov 15, 2023

Codecov Report

Attention: Patch coverage is 16.66667% with 10 lines in your changes missing coverage. Please review.

Project coverage is 38.88%. Comparing base (a959800) to head (571c09e).
Report is 192 commits behind head on main.

Files with missing lines Patch % Lines
src/tools/otherTools.cpp 16.66% 0 Missing and 10 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1023      +/-   ##
==========================================
- Coverage   38.92%   38.88%   -0.04%     
==========================================
  Files          58       58              
  Lines        3990     3991       +1     
  Branches     2201     2204       +3     
==========================================
- Hits         1553     1552       -1     
  Misses       1090     1090              
- Partials     1347     1349       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kelson42 kelson42 force-pushed the suggestions_with_control_characters branch from 24a2ec5 to 072257f Compare November 16, 2023 17:06
According to the JSON spec, control characters from U+0000 through U+001F
must NOT appear in strings unescaped.
@kelson42 kelson42 force-pushed the suggestions_with_control_characters branch from 072257f to 571c09e Compare November 17, 2023 13:55
@kelson42
Copy link
Collaborator

Merging PR as pretty trivial and we need to release 13.0.0 now

@kelson42 kelson42 merged commit 24faf84 into main Nov 17, 2023
13 of 14 checks passed
@kelson42 kelson42 deleted the suggestions_with_control_characters branch November 17, 2023 14:12
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.

New scenario for broken suggestion JSON
2 participants