From a5336482b1ac6093f5e8fcd41acd5fff270dc898 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 30 May 2008 20:42:28 +0000 Subject: [PATCH] Add charset to async-upload content-type header. Props duncanmc. fixes #6873 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@8021 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/async-upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/async-upload.php b/wp-admin/async-upload.php index cdfe486f9..6f5c153cd 100644 --- a/wp-admin/async-upload.php +++ b/wp-admin/async-upload.php @@ -15,7 +15,7 @@ if ( empty($_COOKIE[AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) ) unset($current_user); require_once('admin.php'); -header('Content-Type: text/plain'); +header('Content-Type: text/plain; charset=' . get_option('blog_charset')); if ( !current_user_can('upload_files') ) wp_die(__('You do not have permission to upload files.'));