Make WordPress Core


Ignore:
Timestamp:
03/03/2013 04:30:38 PM (12 years ago)
Author:
ryan
Message:

Use wp_unslash() instead of stripslashes() and stripslashes_deep(). Use wp_slash() instead of add_magic_quotes().

see #WP21767

File:
1 edited

Legend:

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

    r23554 r23591  
    5959
    6060// Support for Conditional GET
    61 $client_etag = isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) ? stripslashes( $_SERVER['HTTP_IF_NONE_MATCH'] ) : false;
     61$client_etag = isset( $_SERVER['HTTP_IF_NONE_MATCH'] ) ? wp_unslash( $_SERVER['HTTP_IF_NONE_MATCH'] ) : false;
    6262
    6363if( ! isset( $_SERVER['HTTP_IF_MODIFIED_SINCE'] ) )
Note: See TracChangeset for help on using the changeset viewer.