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

<img src=''> puts entire HTML document into empty src #16

Open
naterm60 opened this issue Jan 20, 2020 · 0 comments
Open

<img src=''> puts entire HTML document into empty src #16

naterm60 opened this issue Jan 20, 2020 · 0 comments

Comments

@naterm60
Copy link

Just like the title says. I found that my empty src attribute received a very long base64 string, so I decoded it, and it contains my index.html.

So I tried the recommended approach for empty src's, src='//:0' and got "No such file or directory: '//:0'". (See https://stackoverflow.com/questions/19126185/setting-an-image-src-to-empty/19126281).

Note that src='#' isn't recommended.

So I tried a 1 pixel image, which worked: src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"

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

No branches or pull requests

1 participant