Introduce send_nosniff_header() and use it to turn off content sniffing in supported browsers. Fixes #10671 props chrisscott and niallkennedy.

git-svn-id: https://develop.svn.wordpress.org/trunk@13409 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood
2010-02-25 21:41:33 +00:00
parent fcd36216e0
commit 81e711cf87
3 changed files with 15 additions and 0 deletions
+1
View File
@@ -21,6 +21,7 @@ if ( ! isset( $_REQUEST['action'] ) )
require_once('includes/admin.php');
@header('Content-Type: text/html; charset=' . get_option('blog_charset'));
send_nosniff_header();
do_action('admin_init');