WordPress.org

Make WordPress Core

Ticket #14169: 14169.2.patch

File 14169.2.patch, 804 bytes (added by hakre, 8 years ago)

in WP::send_headers() [wp-includes/classes.php]

  • wp-includes/classes.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress
     
    354354                                $client_etag = stripslashes(stripslashes($_SERVER['HTTP_IF_NONE_MATCH']));
    355355                        else $client_etag = false;
    356356
    357                         $client_last_modified = empty($_SERVER['HTTP_IF_MODIFIED_SINCE']) ? '' : trim($_SERVER['HTTP_IF_MODIFIED_SINCE']);
     357                        $client_last_modified = empty($_SERVER['HTTP_IF_MODIFIED_SINCE']) ? '' : trim( stripslashes( $_SERVER['HTTP_IF_MODIFIED_SINCE'] ) );
    358358                        // If string is empty, return 0. If not, attempt to parse into a timestamp
    359359                        $client_modified_timestamp = $client_last_modified ? strtotime($client_last_modified) : 0;
    360360