WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#17855 closed defect (bug) (fixed)

Allow plus '+' character when sanitizing mime type

Reported by: cyberhobo Owned by: 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 3 years ago.

Download all attachments as: .zip

Change History (6)

cyberhobo3 years ago

comment:1 ryan3 years ago

  • Milestone changed from Awaiting Review to 3.2

comment:2 ryan3 years ago

Added some quick unit tests for common mime types.

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

comment:3 ryan3 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

comment:4 ryan3 years ago

In [18353]:

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

comment:5 ryan3 years ago

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