[5.2] Composer update enshrined/svg-sanitize to fix SVG uploads #44746
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request for Issue #38532 (part) .
See #38532 (comment) .
Summary of Changes
This pull request (PR) updates the composer dependency "enshrined/svg-sanitize" from 0.20.0 to the next version 0.21.0.
This fixes the upload of SVG files which contain a
dominant-baseline
attribute.See darylldoyle/svg-sanitizer#112 and https://github.com/darylldoyle/svg-sanitizer/releases/tag/0.21.0 .
Testing Instructions
Set media options to allow
svg
files (allowed extensions),svg
image files andimage/svg+xml
mimetype.Go to media manager
Upload an SVG file which contains a
dominant-baseline
attribute.You can download the SVG file from this issue darylldoyle/svg-sanitizer#111 here: svg-file .
Actual result BEFORE applying this Pull Request
Error "Unable to upload file".
Expected result AFTER applying this Pull Request
SVG file is uploaded and shows in media manager.
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed