From: garvinhicking Date: Wed, 16 Aug 2006 08:56:26 +0000 (+0000) Subject: Fi conditional get caching when server-timezone offset is != 0 X-Git-Tag: 1.1~128 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f93a39123e37524d0331b74f04ed4b33d825f596;p=s9y.git Fi conditional get caching when server-timezone offset is != 0 --- diff --git a/docs/NEWS b/docs/NEWS index ba2b85d..4d7bc61 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,9 @@ Version 1.1-beta2 () ------------------------------------------------------------------------ + * Fix a bug in the HTTP 304 Conditional GET RSS-Feed caching when + the server timezone offset was not set to zero. Thanks to dand! + * Added ability to use HTTP Authentication to the blog. Can be triggered by submitting HTTP Auth credentials [only supported when the server runs with mod_php, not as CGI]. Authentication can be diff --git a/rss.php b/rss.php index c574e77..cc3321c 100644 --- a/rss.php +++ b/rss.php @@ -50,7 +50,7 @@ if (!isset($_GET['nocache'])) { // See if the client has provided the required headers. // Always convert the provided header into GMT timezone to allow comparing to the server-side last-modified header $modified_since = !empty($_SERVER['HTTP_IF_MODIFIED_SINCE']) - ? gmdate('D, d M Y H:i:s \G\M\T', serendipity_serverOffsetHour(strtotime(stripslashes($_SERVER['HTTP_IF_MODIFIED_SINCE'])), true)) + ? gmdate('D, d M Y H:i:s \G\M\T', strtotime(stripslashes($_SERVER['HTTP_IF_MODIFIED_SINCE'])), true) : false; $none_match = !empty($_SERVER['HTTP_IF_NONE_MATCH']) ? str_replace('"', '', stripslashes($_SERVER['HTTP_IF_NONE_MATCH']))