WordPress.org

Make WordPress Core

Ticket #24374: 24374-ms-files-stripslashes.diff

File 24374-ms-files-stripslashes.diff, 766 bytes (added by devesine, 22 months ago)
  • wp-includes/ms-files.php

     
    5757header( 'ETag: ' . $etag ); 
    5858header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', time() + 100000000 ) . ' GMT' ); 
    5959 
    60 // Support for Conditional GET 
    61 $client_etag = isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) ? wp_unslash( $_SERVER['HTTP_IF_NONE_MATCH'] ) : false; 
     60// Support for Conditional GET - use stripslashes to avoid formatting.php dependency 
     61$client_etag = isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) ? stripslashes( $_SERVER['HTTP_IF_NONE_MATCH'] ) : false; 
    6262 
    6363if( ! isset( $_SERVER['HTTP_IF_MODIFIED_SINCE'] ) ) 
    6464        $_SERVER['HTTP_IF_MODIFIED_SINCE'] = false;