-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Cannot save page after SVG upload #3791
Labels
Comments
Ive tested with latest Grav and can't replicate this with your SVG. |
Thank you for looking into this. I was not clear enough in my instructions:
I downloaded latest Grav and was able to reproduce it again. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I upload a specific SVG to a custom modular (see comment below), the page will display the following error:
Failed to save entry: SVG file XSS check failed on on_events
TypeError: can't convert undefined to object after using defaultProps
After displaying this error, the page cannot be saved anymore.
Here is the SVG:
I believe that some XSS feature is recognizing that there are "xlink:href" and < defs >. This happened to me because I had exported an SVG that contained "meshes" from Adobe Illustrator.
Now how to resolve this (for me):
The text was updated successfully, but these errors were encountered: