WordPress.org

Make WordPress Core

Changeset 18353


Ignore:
Timestamp:
06/27/11 21:33:34 (3 years ago)
Author:
ryan
Message:

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

Location:
branches/3.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.1

  • branches/3.1/wp-includes/formatting.php

    r18031 r18353  
    29132913 */ 
    29142914function sanitize_mime_type( $mime_type ) { 
    2915     $sani_mime_type = preg_replace( '/[^-*.a-zA-Z0-9\/]/', '', $mime_type ); 
     2915    $sani_mime_type = preg_replace( '/[^-+*.a-zA-Z0-9\/]/', '', $mime_type ); 
    29162916    return apply_filters( 'sanitize_mime_type', $sani_mime_type, $mime_type ); 
    29172917} 
Note: See TracChangeset for help on using the changeset viewer.