mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Allow plus '+' character when sanitizing mime type. Props cyberhobo. fixes #17855
git-svn-id: https://develop.svn.wordpress.org/trunk@18324 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2907,7 +2907,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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user