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

It doesn't support non-escaped URLs #9

Open
fregante opened this issue Oct 1, 2021 · 2 comments
Open

It doesn't support non-escaped URLs #9

fregante opened this issue Oct 1, 2021 · 2 comments
Labels

Comments

@fregante
Copy link

fregante commented Oct 1, 2021

This is one of the URLs listed on MDN: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs

data:text/html,<script>alert('hi');</script>

And it just fails due to < and the rest
Screen Shot 13

@killmenot
Copy link
Owner

@fregante The regex of valid-data-url seems doesn't handle it correctly. I will fix it next week. Thanks.

@killmenot killmenot added the bug label Oct 3, 2021
@killmenot
Copy link
Owner

if anyone could do a PR for that I will be happy to merge

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

No branches or pull requests

2 participants