Skip to content

pad percent escape to two hex digits in FilePersistenceStrategy#465

Open
jmestwa-coder wants to merge 1 commit into
x-stream:masterfrom
jmestwa-coder:escape-hex-padding
Open

pad percent escape to two hex digits in FilePersistenceStrategy#465
jmestwa-coder wants to merge 1 commit into
x-stream:masterfrom
jmestwa-coder:escape-hex-padding

Conversation

@jmestwa-coder
Copy link
Copy Markdown

escape in FilePersistenceStrategy emits the hex via Integer.toHexString with no padding, but unescape always reads two hex digits, so a key character below 0x10 (tab, newline, cr) escapes to a single digit that can't be decoded back, and two distinct keys can collide on the same filename. pad the escaped value to two hex digits to match the reader.

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