Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#17855 closed defect (bug) (fixed)

Allow plus '+' character when sanitizing mime type

Reported by: cyberhobo's profile cyberhobo Owned by: ryan's profile ryan
Milestone: 3.1.4 Priority: normal
Severity: normal Version: 3.2
Component: Upload Keywords: has-patch dev-feedback
Focuses: Cc:

Description

The case that breaks for me is uploading KML with mime type application/vnd.google-earth.kml+xml, which was saved correctly in previous versions but is now saved as application/vnd.google-earth.kmlxml. My patch fixes that.

References:

Attachments (1)

17855.diff (540 bytes) - added by cyberhobo 14 years ago.

Download all attachments as: .zip

Change History (6)

@cyberhobo
14 years ago

#1 @ryan
14 years ago

  • Milestone changed from Awaiting Review to 3.2

#2 @ryan
14 years ago

Added some quick unit tests for common mime types.

http://unit-tests.trac.wordpress.org/changeset/372

#3 @ryan
14 years ago

  • Owner set to ryan
  • Resolution set to fixed
  • Status changed from new to closed

In [18324]:

Allow plus '+' character when sanitizing mime type. Props cyberhobo. fixes #17855

#4 @ryan
14 years ago

In [18353]:

Allow plus '+' character when sanitizing mime type. Props cyberhobo. fixes #17855 for 3.1

#5 @ryan
14 years ago

  • Milestone changed from 3.2 to 3.1.4
Note: See TracTickets for help on using tickets.