Ticket #10671: index-extra.diff

File index-extra.diff, 403 bytes (added by niallkennedy, 4 years ago)

Extra dashboard content ajax handler with sniff opt-out HTTP header.

Line 
1Index: index-extra.php
2===================================================================
3--- index-extra.php     (revision 11867)
4+++ index-extra.php     (working copy)
5@@ -16,6 +16,7 @@
6 require_once (ABSPATH . WPINC . '/rss.php');
7 
8 @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
9+@header('X-Content-Type-Options: nosniff');
10 
11 switch ( $_GET['jax'] ) {
12