for watch/unwatch, group membership change, and login operations
* Restructured the languages directory, to avoid problems when people
untar MW 1.8 over the top of a 1.7 installation.
+* (bug 6890) SQL query error on bad input to Pager lists
+ due to negative LIMIT clause, caused by integer wraparound.
== Languages updated ==
# HTML!
$this->mOffset = $this->mRequest->getText( 'offset' );
$this->mLimit = $this->mRequest->getInt( 'limit', $this->mDefaultLimit );
- if ( $this->mLimit <= 0 ) {
+ if ( $this->mLimit <= 0 || $this->mLimit > 50000 ) {
$this->mLimit = $this->mDefaultLimit;
}
$this->mIsBackwards = ( $this->mRequest->getVal( 'dir' ) == 'prev' );