You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Base64 data URIs fail or decode incorrect bytes when their payload is percent-encoded #2481
On current main cc0ca9e, percent-encoded characters in a base64 data URI reach the base64 decoder without URL decoding. Some valid inputs raise binascii.Error; others silently produce incorrect bytes.
MarkItDown.convert_uri also fails on URL-escaped base64 payloads. Raw base64 and non-base64 data URIs already work and should keep their behavior. RFC 2397 section 3 defines the data field using URL characters; decoding those escapes must precede base64 decoding. The new regression suite reports 16 failures and 2 passes against unchanged production code.
Activity
test(uri_utils): add test case for mixed literal and percent-encoded …
test(uri_utils): add regression test for lowercase percent-encoded ba…