Make query pages not accept offset > 10000 in miser mode
authorBrian Wolff <bawolff+wn@gmail.com>
Tue, 3 Nov 2015 23:59:45 +0000 (16:59 -0700)
committerBrian Wolff <bawolff+wn@gmail.com>
Wed, 4 Nov 2015 00:03:50 +0000 (17:03 -0700)
commite33d6f45a4272ec673da3c2614ebe180aff070dd
tree9c0da4543712c9ce0813df741dc55e2f4c43b410
parentf0ec6a11c90aec034c31a9f43ea7254e02801fb4
Make query pages not accept offset > 10000 in miser mode

Most query pages use LIMIT/OFFSET paging, which is inefficient
if someone puts an offset of a billion. Add a limit for the
max offset size that will be respected.

Bug: T107265
Change-Id: I422f9e446d1ee1aebb4057234c829192cf44b953
includes/specialpage/QueryPage.php