[whatwg/fetch] 0x00 byte (%00) in a data: URL (Issue #1748)

Briefly looking into https://bugs.webkit.org/show_bug.cgi?id=21975 I noticed that user agents vary in behavior for these two `data:` URLs:

1. `data:text/html,a%00a`
2. `data:text/html,a%01a`

In 1 it seems the 0x00 byte gets dropped completely.

This seems specific to `data:` URLs processing as `%00` remains part of the URL. And for fragment navigation for instance it's not dropped, compare `https://whatwg.org/stages#stage%000` and `https://whatwg.org/stages#stage0`.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1748
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/issues/1748@github.com>

Received on Monday, 29 April 2024 12:37:34 UTC