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
This commit is contained in:
Ryan Boren 2008-05-30 20:42:28 +00:00
parent e1faf662e8
commit dd60c22172
1 changed files with 1 additions and 1 deletions

View File

@ -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.'));