(bug 33992) - "Allow anon a formless purge with POST". Changed HTMLForm::tryAuthorize...
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 30 Jan 2012 23:44:34 +0000 (23:44 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 30 Jan 2012 23:44:34 +0000 (23:44 +0000)
commit1c48deee3b72e65ec66496318f8516ff673586b7
tree1754f4926b591b93989551ff0461b70ed04564ae
parent1e21dd285868e88dd9451ad88cfebaffed74f284
(bug 33992) - "Allow anon a formless purge with POST". Changed HTMLForm::tryAuthorizedSubmit() to (a) require post for forms that are supposed to be posted and (b) bypass the token check for anons as it doesn't really do much except be slightly annoying. The tokens are just User::EDIT_TOKEN_SUFFIX in that case.
includes/HTMLForm.php