Skip to content

RFC2231Utils decodeText - Incorrect handling of percent encoded text#472

Open
Chenjp wants to merge 1 commit into
apache:masterfrom
Chenjp:rfc2231_iae_unexpected_decoded
Open

RFC2231Utils decodeText - Incorrect handling of percent encoded text#472
Chenjp wants to merge 1 commit into
apache:masterfrom
Chenjp:rfc2231_iae_unexpected_decoded

Conversation

@Chenjp
Copy link
Copy Markdown

@Chenjp Chenjp commented May 21, 2026

Issue: decoded text does not conform rfc2231 was incorrectly decoded, e.g., utf-8''%3\u8a35 -> 5

Expectation: illegal format.

Code change: check the next 2 chars after percent %, ensure %HH format per RFC 2231, raise iae if not.

Testcase attached.

Issue:
    utf-8''%3\u8a35 -> 5
Expectation: illegal format.

raise iae when decode '%3\u8a35'.
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