WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/23/2010 07:13:58 PM (12 years ago)
Author:
nacin
Message:

Move send_nosniff_header() into wp-includes so it can be used in wp-ajax.php. props sivel, fixes #12683

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r13797 r13806  
    40834083    return false;
    40844084}
     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 */
     4095function send_nosniff_header() {
     4096    @header( 'X-Content-Type-Options: nosniff' );
     4097}
     4098
     4099?>
Note: See TracChangeset for help on using the changeset viewer.