ChangesListSpecialPage: Make maximum limit consistent (1000)
authorRoan Kattouw <roan.kattouw@gmail.com>
Fri, 16 Nov 2018 22:06:02 +0000 (14:06 -0800)
committerRoan Kattouw <roan.kattouw@gmail.com>
Fri, 16 Nov 2018 22:06:02 +0000 (14:06 -0800)
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

index 4201f80..1bb995a 100644 (file)
@@ -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 ) );
        }