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

prevent injection if image type is wrong #1494

Open
pirobox opened this issue Jul 13, 2024 · 0 comments
Open

prevent injection if image type is wrong #1494

pirobox opened this issue Jul 13, 2024 · 0 comments

Comments

@pirobox
Copy link

pirobox commented Jul 13, 2024

Hi,
in my very old app, I have this nasty scenario: an image has a src that is something like http:/give/me/some/image/from/server and the problem is that I don't know beforehand which type of image (svg, png,...) the url will return.
So, is there a way for intercepting the loading of the image and, if it is an svg, I let library do the replacement of the with an , but, if it is another type of image I leave the old tag.

regards

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