From ac2837c9b3ed8a7f242b371d072b75880f29f4e7 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Fri, 16 Nov 2018 14:06:02 -0800 Subject: [PATCH] ChangesListSpecialPage: Make maximum limit consistent (1000) The maximum value for the rclimit and wllimit preferences is 1000, so make the maximum value for the ?limit= query parameter also 1000. Bug: T206233 Change-Id: I244ab2896875391f9676c8127033a0b76568157f --- includes/specialpage/ChangesListSpecialPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specialpage/ChangesListSpecialPage.php b/includes/specialpage/ChangesListSpecialPage.php index 4201f80f45..1bb995a915 100644 --- a/includes/specialpage/ChangesListSpecialPage.php +++ b/includes/specialpage/ChangesListSpecialPage.php @@ -1279,7 +1279,7 @@ abstract class ChangesListSpecialPage extends SpecialPage { $this->getOutput()->redirect( $this->getPageTitle()->getCanonicalURL( $query ) ); } - $opts->validateIntBounds( 'limit', 0, 5000 ); + $opts->validateIntBounds( 'limit', 0, 1000 ); $opts->validateBounds( 'days', 0, $this->getConfig()->get( 'RCMaxAge' ) / ( 3600 * 24 ) ); } -- 2.20.1