Ticket #1323: last-modified.2.patch

File last-modified.2.patch, 683 bytes (added by anonymousbugger, 7 years ago)
  • wp-blog-header.php

    === wp-blog-header.php
    ==================================================================
     
    135135 
    136136        if ( ($client_last_modified && $client_etag) ? 
    137137                ((strtotime($client_last_modified) >= strtotime($wp_last_modified)) && ($client_etag == $wp_etag)) : 
    138                 ((strtotime($client_last_modified) >= strtotime($wp_last_modified)) || ($client_etag == $wp_etag)) ) { 
     138                (($client_last_modified && strtotime($client_last_modified) >= strtotime($wp_last_modified)) || ($client_etag == $wp_etag)) ) { 
    139139                if ( preg_match('/cgi/',php_sapi_name()) ) { 
    140140                        header('Status: 304 Not Modified'); 
    141141                        echo "\r\n\r\n";