Fix bug discovered in r77171 from the user data in If-Modified-Since passed by resour...
authorPlatonides <platonides@users.mediawiki.org>
Sun, 28 Nov 2010 21:59:16 +0000 (21:59 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sun, 28 Nov 2010 21:59:16 +0000 (21:59 +0000)
commitd9fce2a683f6f46b07e81d7781190db18be84d91
treefbb7037d5f36879700b5e1df1372dff03fbaf288
parent54f8abd943c78218fa1f757ea77c555bcb282bc3
Fix bug discovered in r77171 from the user data in If-Modified-Since passed by resource loader.
Added in wfTimestamp reading support for the three http date formats.
Increased conformance reading rfc2822 dates (read support added in r71750/r71751). We may not want full compliance with rfc2822, though.
The only provider of rfc2822 dates is probably http and that uses a subset (it's rfc822 + 4-digit years from rfc1123).
Make wfTimestamp() return false in case of a wrong input, according to CR.
includes/GlobalFunctions.php
maintenance/tests/phpunit/includes/GlobalTest.php