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

git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@18353 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-06-27 21:33:34 +00:00
parent bb29b5d686
commit ba56bbdcf5
1 changed files with 1 additions and 1 deletions

View File

@ -2912,7 +2912,7 @@ function capital_P_dangit( $text ) {
* @return string Sanitized mime type
*/
function sanitize_mime_type( $mime_type ) {
$sani_mime_type = preg_replace( '/[^-*.a-zA-Z0-9\/]/', '', $mime_type );
$sani_mime_type = preg_replace( '/[^-+*.a-zA-Z0-9\/]/', '', $mime_type );
return apply_filters( 'sanitize_mime_type', $sani_mime_type, $mime_type );
}