Skip to:
Content

bbPress.org

Changeset 3895


Ignore:
Timestamp:
05/10/2012 04:21:07 PM (9 years ago)
Author:
nacin
Message:

Issue a Last-Modified header in rss.php in the proper HTTP-date format per RFC 1123.

The parameter documentation of bb_send_304() requires an HTTP-date, so only fixing the caller.

Incorrect: 2012-05-10 00:49:56
Correct: Tue, 15 Nov 1994 08:12:31 GMT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1/rss.php

    r2420 r3895  
    185185    $posts = array();
    186186else /* Only send 304 if there are posts */
    187     bb_send_304( $posts[0]->post_time );
     187    bb_send_304( gmdate('D, d M Y H:i:s \G\M\T', strtotime( $posts[0]->post_time ) ) );
    188188
    189189if (!$description = bb_get_option( 'description' ) ) {
     
    197197bb_load_template( 'rss2.php', array('bb_db_override', 'title', 'description', 'link', 'link_self'), $feed );
    198198
    199 ?>
Note: See TracChangeset for help on using the changeset viewer.