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

Bug fix: handle invalid SVG markup #288

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

daun
Copy link
Contributor

@daun daun commented May 15, 2024

Fixes processwire/processwire-issues#1925

Only try to read the width and height attributes from an svg image's root if the parser actually returns a result. Not doing this results in a fatal error if the svg markup is invalid and the simplexml handler returns false.

@daun daun changed the title Gracefully handle invalid SVG markup Bug fix: handle invalid SVG markup Jul 2, 2024
@daun
Copy link
Contributor Author

daun commented Jul 2, 2024

Is anything required to get this merged? Let me know if it needs more documentation.

The issue in question is breaking a production site and I'd love to see this released.

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

Successfully merging this pull request may close these issues.

None yet

1 participant