Making WordPress.org

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#4180 closed defect (bug) (invalid)

SVG icons for plugins are always downloaded, despite image/svg+xml mime-type

Reported by: johnbillion's profile 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
6 years 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
6 years ago

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