From bc667be71b8cf8fcddf13d540535a8f2df39c321 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 20 Jun 2011 20:05:57 +0000 Subject: [PATCH] Allow plus '+' character when sanitizing mime type. Props cyberhobo. fixes #17855 git-svn-id: http://svn.automattic.com/wordpress/trunk@18324 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index e7cb21c1c..15931380f 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -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 ); }