SECURITY: Rate limit moves via the API
authorBrad Jorsch <bjorsch@wikimedia.org>
Sun, 17 Apr 2016 14:32:56 +0000 (10:32 -0400)
committerChad Horohoe <chadh@wikimedia.org>
Fri, 20 May 2016 16:49:33 +0000 (09:49 -0700)
commit8a00ddbf357831129b6565d0e0f7858f3514b582
tree8f375af82bef173346f702ea4599cee52c6b5402
parent9097fb54c534175c0bda30ed2d607c981fa64be6
SECURITY: Rate limit moves via the API

While rate limiting has been applied to moves via the web UI since rate
limiting was first added, it appears that it was overlooked when ApiMove
was created.

This follows the same model as is followed by the web UI: each
submission to ApiMove is one "hit" for the rate limiter, even though
that submission might result in multiple pages being moved (e.g. the
page, its talk page, and its subpages) depending on the options and user
rights.

Bug: T132874
Change-Id: I564d8bfcc7dd3ad6d92dbbc33519a589697c0d4e

Signed-off-by: Chad Horohoe <chadh@wikimedia.org>
includes/api/ApiMove.php