WordPress.org

Make WordPress Core

Changeset 20640


Ignore:
Timestamp:
04/30/2012 01:25:29 AM (8 years ago)
Author:
nacin
Message:

Properly extract file headers via get_file_data() when CR line endings are used. props solarissmoke for the initial patch. fixes #19854.

File:
1 edited

Legend:

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

    r20480 r20640  
    33793379    fclose( $fp );
    33803380
     3381    // Make sure we catch CR-only line endings.
     3382    $file_data = str_replace( "\r", "\n", $file_data );
     3383
    33813384    if ( $context && $extra_headers = apply_filters( "extra_{$context}_headers", array() ) ) {
    33823385        $extra_headers = array_combine( $extra_headers, $extra_headers ); // keys equal values
Note: See TracChangeset for help on using the changeset viewer.