Index: branches/REL1_4/phase3/includes/OutputPage.php |
— | — | @@ -103,7 +103,8 @@ |
104 | 104 | # Wed, 20 Aug 2003 06:51:19 GMT; length=5202 |
105 | 105 | # this breaks strtotime(). |
106 | 106 | $modsince = preg_replace( '/;.*$/', '', $_SERVER["HTTP_IF_MODIFIED_SINCE"] ); |
107 | | - $ismodsince = wfTimestamp( TS_MW, strtotime( $modsince ) ); |
| 107 | + $modsinceTime = strtotime( $modsince ); |
| 108 | + $ismodsince = wfTimestamp( TS_MW, $modsinceTime ? $modsinceTime : 1 ); |
108 | 109 | wfDebug( "-- client send If-Modified-Since: " . $modsince . "\n", false ); |
109 | 110 | wfDebug( "-- we might send Last-Modified : $lastmod\n", false ); |
110 | 111 | if( ($ismodsince >= $timestamp ) && $wgUser->validateCache( $ismodsince ) ) { |
Index: branches/REL1_4/phase3/RELEASE-NOTES |
— | — | @@ -665,7 +665,9 @@ |
666 | 666 | * Fixed a typo in the Romanian language file (NS_MESIA => NS_MEDIA) |
667 | 667 | * (bug 2531) Changed the interwiki name for sh (Serbocroatian) to |
668 | 668 | Srpskohrvatski/Српскохрватски (was Српскохрватски (Srbskohrvatski)) |
| 669 | +* Workaround for mysterious problem with bogus epoch If-Last-Modified reqs |
669 | 670 | |
| 671 | + |
670 | 672 | === Caveats === |
671 | 673 | |
672 | 674 | Some output, particularly involving user-supplied inline HTML, may not |