Skip to content

[bug-fix] fixed JSON patch ~ decoding bug in decode_pointer_inplace() - #1142

Open
eremognosis wants to merge 1 commit into
DaveGamble:masterfrom
eremognosis:bugfix
Open

eremognosis wants to merge 1 commit into
DaveGamble:masterfrom
eremognosis:bugfix

Conversation

@eremognosis

Copy link
Copy Markdown

Corrected decode_pointer_inplace() to write decoded / characters at the current output position and copy subsequent characters during in-place decoding. This fixes removal and replacement of object keys containing /, such as a/b, when encoded as /a~1b.
The existing JSON Patch suite and a new /a~1b regression test pass.

Related issue: #1050

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.

1 participant