WordPress.org

Make WordPress Core

Ticket #17855: 17855.diff

File 17855.diff, 540 bytes (added by cyberhobo, 9 years ago)
  • wp-includes/formatting.php

     
    29072907 * @return string Sanitized mime type
    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}
    29132913