(bug 33304) Fix ApiQueryAllPages and old indef protections
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 30 Jan 2013 00:57:56 +0000 (19:57 -0500)
committerReedy <reedy@wikimedia.org>
Thu, 7 Mar 2013 03:03:49 +0000 (03:03 +0000)
commit3d0f6878f355ff38f5822e37121661352d272fe8
tree6b67190277deea1dddacf6d23fa5ca2ebd6fd634
parentfda29425c448e8240043894affc8d3619db5ef2f
(bug 33304) Fix ApiQueryAllPages and old indef protections

In the query to find only protected pages, ApiQueryAllPages includes a
clause to make sure it doesn't find expired protections. But it doesn't
take into account the possibility that the protection might be an old
infinite protection where the expiry is represented as NULL instead of
'infinity'.

Note this may not close the whole bug; that remains to be determined.

Bug: 33304
Change-Id: If85591986a19bf78f7d56ad60d251fbc450ac451
RELEASE-NOTES-1.21
includes/api/ApiQueryAllPages.php