Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -113,7 +113,8 @@ |
114 | 114 | # Wed, 20 Aug 2003 06:51:19 GMT; length=5202 |
115 | 115 | # this breaks strtotime(). |
116 | 116 | $modsince = preg_replace( '/;.*$/', '', $_SERVER["HTTP_IF_MODIFIED_SINCE"] ); |
117 | | - $ismodsince = wfTimestamp( TS_MW, strtotime( $modsince ) ); |
| 117 | + $modsinceTime = strtotime( $modsince ); |
| 118 | + $ismodsince = wfTimestamp( TS_MW, $modsinceTime ? $modsinceTime : 1 ); |
118 | 119 | wfDebug( "-- client send If-Modified-Since: " . $modsince . "\n", false ); |
119 | 120 | wfDebug( "-- we might send Last-Modified : $lastmod\n", false ); |
120 | 121 | if( ($ismodsince >= $timestamp ) && $wgUser->validateCache( $ismodsince ) ) { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -468,6 +468,7 @@ |
469 | 469 | * Removed language conversion support from Icelandic |
470 | 470 | * (bug 2616) Fix proportional image scaling, giving correct height |
471 | 471 | * (bug 2640) Include width and height attributes on unscaled images |
| 472 | +* Workaround for mysterious problem with bogus epoch If-Last-Modified reqs |
472 | 473 | |
473 | 474 | |
474 | 475 | === Caveats === |