Make WordPress Core

Changeset 23573


Ignore:
Timestamp:
03/01/2013 05:51:16 PM (11 years ago)
Author:
nacin
Message:

Remove double-strip on HTTP_IF_NONE_MATCH, which was done years ago (in #2597). see #21767.

File:
1 edited

Legend:

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

    r23554 r23573  
    357357            // Support for Conditional GET
    358358            if (isset($_SERVER['HTTP_IF_NONE_MATCH']))
    359                 $client_etag = stripslashes(stripslashes($_SERVER['HTTP_IF_NONE_MATCH']));
     359                $client_etag = wp_unslash( $_SERVER['HTTP_IF_NONE_MATCH'] );
    360360            else $client_etag = false;
    361361
Note: See TracChangeset for help on using the changeset viewer.