WordPress.org

Making WordPress.org

Opened 9 months ago

Closed 9 months ago

Last modified 9 months ago

#4180 closed defect (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)

#1 @Otto42
9 months ago

  • Resolution set to invalid
  • Status changed from new to closed

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.

#2 @SergeyBiryukov
9 months ago

  • Component changed from General to Plugin Directory
Note: See TracTickets for help on using tickets.