From fbf39813dc6e444c6b817f74973bb55c53921428 Mon Sep 17 00:00:00 2001 From: dd32 Date: Sun, 11 Apr 2010 02:11:29 +0000 Subject: [PATCH] Add .tsv file format to Upload whitelist. Fixes #12757 git-svn-id: http://svn.automattic.com/wordpress/trunk@14064 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index c718c2404..4287c1702 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2328,7 +2328,7 @@ function wp_ext2type( $ext ) { 'document' => array( 'doc', 'docx', 'docm', 'dotm', 'odt', 'pages', 'pdf', 'rtf' ), 'spreadsheet' => array( 'numbers', 'ods', 'xls', 'xlsx', 'xlsb', 'xlsm' ), 'interactive' => array( 'key', 'ppt', 'pptx', 'pptm', 'odp', 'swf' ), - 'text' => array( 'asc', 'txt', 'csv' ), + 'text' => array( 'asc', 'csv', 'tsv', 'txt' ), 'archive' => array( 'bz2', 'cab', 'dmg', 'gz', 'rar', 'sea', 'sit', 'sqx', 'tar', 'tgz', 'zip' ), 'code' => array( 'css', 'html', 'php', 'js' ), )); @@ -2393,6 +2393,7 @@ function get_allowed_mime_types() { 'mpeg|mpg|mpe' => 'video/mpeg', 'txt|asc|c|cc|h' => 'text/plain', 'csv' => 'text/csv', + 'tsv' => 'text/tab-separated-values', 'rtx' => 'text/richtext', 'css' => 'text/css', 'htm|html' => 'text/html',