From dd60c22172f4b460af59226586946d3a6acb171e Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@8021 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 cdfe486f91..6f5c153cd0 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.'));