Changeset 13806
- Timestamp:
- 03/23/2010 07:13:58 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/misc.php
r13733 r13806 656 656 657 657 /** 658 * Send a HTTP header to disable content type sniffing in browsers which support it.659 *660 * @link http://blogs.msdn.com/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx661 * @link http://src.chromium.org/viewvc/chrome?view=rev&revision=6985662 *663 * @since 3.0.0.664 * @return none665 */666 function send_nosniff_header() {667 @header( 'X-Content-Type-Options: nosniff' );668 }669 /**670 658 * Display the default admin color scheme picker (Used in user-edit.php) 671 659 * 672 * @since 3.0 660 * @since 3.0.0 673 661 */ 674 662 function admin_color_scheme_picker() { -
trunk/wp-includes/functions.php
r13797 r13806 4083 4083 return false; 4084 4084 } 4085 4086 /** 4087 * Send a HTTP header to disable content type sniffing in browsers which support it. 4088 * 4089 * @link http://blogs.msdn.com/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx 4090 * @link http://src.chromium.org/viewvc/chrome?view=rev&revision=6985 4091 * 4092 * @since 3.0.0 4093 * @return none 4094 */ 4095 function send_nosniff_header() { 4096 @header( 'X-Content-Type-Options: nosniff' ); 4097 } 4098 4099 ?>
Note: See TracChangeset
for help on using the changeset viewer.