Make WordPress Core

Changeset 24305


Ignore:
Timestamp:
05/20/2013 08:20:22 PM (12 years ago)
Author:
nacin
Message:

Use stripslashes() instead of wp_unslash() in ms-files.php to avoid formatting.php dependency. props devesine, fixes #24374.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-files.php

    r23591 r24305  
    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'] ) )
Note: See TracChangeset for help on using the changeset viewer.