Index: trunk/phase3/includes/specials/SpecialRecentchanges.php |
— | — | @@ -68,10 +68,11 @@ |
69 | 69 | * @return FormOptions |
70 | 70 | */ |
71 | 71 | public function setup( $parameters ) { |
72 | | - global $wgRequest; |
| 72 | + global $wgRequest, $wgRCMaxAge; |
73 | 73 | |
74 | 74 | $opts = $this->getDefaultOptions(); |
75 | 75 | $opts->fetchValuesFromRequest( $wgRequest ); |
| 76 | + $opts->validateIntBounds( 'days', 1, $wgRCMaxAge / ( 3600 * 24 ) ); |
76 | 77 | |
77 | 78 | // Give precedence to subpage syntax |
78 | 79 | if( $parameters !== null ) { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -15,6 +15,7 @@ |
16 | 16 | === New features in 1.19 === |
17 | 17 | |
18 | 18 | === Bug fixes in 1.19 === |
| 19 | +* (bug 10154) Don't allow user to specify days beyond $wgRCMaxAge. |
19 | 20 | |
20 | 21 | === API changes in 1.19 === |
21 | 22 | |