WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/20/2011 08:05:57 PM (9 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r18323 r18324  
    29082908 */
    29092909function sanitize_mime_type( $mime_type ) {
    2910     $sani_mime_type = preg_replace( '/[^-*.a-zA-Z0-9\/]/', '', $mime_type );
     2910    $sani_mime_type = preg_replace( '/[^-+*.a-zA-Z0-9\/]/', '', $mime_type );
    29112911    return apply_filters( 'sanitize_mime_type', $sani_mime_type, $mime_type );
    29122912}
Note: See TracChangeset for help on using the changeset viewer.