#4180 closed defect (bug) (invalid)
SVG icons for plugins are always downloaded, despite image/svg+xml mime-type
Reported by: | johnbillion | Owned by: | |
---|---|---|---|
Milestone: | Priority: | lowest | |
Component: | Plugin Directory | Keywords: | needs-patch |
Cc: |
Description
I've added an SVG icon to a plugin of mine (https://plugins.svn.wordpress.org/user-switching/assets/icon.svg). The file always gets downloaded in the browser when viewed directly at its URL.
I've set the mime type (via the svn:mime-type
property) to image/svg+xml
but it has no effect. I suspect this might be a server level configuration that needs changing so SVGs can be served without being downloaded.
Change History (2)
Note: See
TracTickets for help on using
tickets.
This is intentionally disabled for security reasons. Allowing authors the ability to serve SVG files directly would be a problem, as SVG files can contain javascripts which would then be served from the *.wordpress.org domain.