Page MenuHomePhabricator

"image/svg" should be "image/svg+xml"
Closed, DeclinedPublic

Description

Author: wikimedia.org

Description:
And probably every SVG file mentions this wrong MIME type


Version: unspecified
Severity: normal
URL: http://en.wikipedia.org/wiki/Image:007.svg

Details

Reference
bz7554

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:25 PM
bzimport set Reference to bz7554.
bzimport added a subscriber: Unknown Object (MLST).

Keep in mind that this is cosmetic and has no affect on file serving.

wikimedia.org wrote:

As it's only cosmetic, it can't be difficult to fix quickly. Please do so.
Keep in mind this error is seen in an incredible ammount of places around the
web, so it's bound to cause people making mistakes

ayg wrote:

Fixed (cosmetically) in r17841.

ayg wrote:

Patch for a less cosmetic fix

Here's a patch I made that should fix this properly. Anyone want to review it?

Attached:

This is making SpecialUndelete to provide the wrong MIME (image/svg) on
contenttype when viewing deleted images. Thus Firefox is treating it as a
download instead of rendering it.

This should be fixed before more and more svg (with wrong MIME type) are uploaded.

Doesn't seem to be a problem currently. (Tested Firefox 3.0 beta 2 and Safari 3.0)