API: No mustposttoken error with $wgDebugAPI
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 18 Sep 2014 19:56:53 +0000 (15:56 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 18 Sep 2014 19:56:53 +0000 (15:56 -0400)
commit756691eace9544298ec0afb4dde34693f7bbf735
tree3297c64e426775c24eb8063e8c11c00d8a532481
parent8d48d5c27cc8b48698dcf1ccaf5f690c7e0ab5bf
API: No mustposttoken error with $wgDebugAPI

$wgDebugAPI is supposed to be a way to quickly (and insecurely) test API
modules using GET where they'd normally require POST. But this purpose
is defeated if token handling still throws mustposttoken.

Change-Id: Iee2fb76da86bf0670f9816f24f68c611fa0728b1
includes/api/ApiMain.php