Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0x00 byte (%00) in a data: URL #1748

Open
annevk opened this issue Apr 29, 2024 · 2 comments
Open

0x00 byte (%00) in a data: URL #1748

annevk opened this issue Apr 29, 2024 · 2 comments

Comments

@annevk
Copy link
Member

annevk commented Apr 29, 2024

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.

@AvulaRamSwaroop
Copy link

Yes,you are right.Both URL's are navigating to differnet pages as they are having different URL's and that %00 seems to remained as part of URL

@nektro
Copy link

nektro commented Dec 23, 2024

should this issue be in https://github.com/whatwg/url since this pertains to the https://url.spec.whatwg.org/#percent-encoded-bytes algorithm?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants