Ensure action object matches passed in right in Title::checkUserBlock()
authorDavid Barratt <dbarratt@wikimedia.org>
Tue, 8 Jan 2019 21:14:48 +0000 (16:14 -0500)
committerThalia <thalia.e.chan@googlemail.com>
Thu, 7 Feb 2019 19:11:42 +0000 (19:11 +0000)
commitc3ee8fa1f8ed66665a15bca83877c6a4d0fe2456
treefd5ca55de18fb7d7fd1a4cc19ea33d0b0efdb5f7
parent027fb1c8cd366bba1fe8c3dbdd2a1331d70b7761
Ensure action object matches passed in right in Title::checkUserBlock()

There is a possibility that the retrieved action (by name) will not match the
passed in right, we should ensure that the retrieved action matches.

Also adds 'purge' to the whitelist of actions that are not prevented by a
block.

Bug: T213220
Change-Id: I5671dcd6f004b1663c8a5c5aec200abbf742ec1d
includes/Block.php
includes/Title.php
tests/phpunit/includes/BlockTest.php