Whitelisting publicly readable title with regex
authornullspoon <nullspoon@iohq.net>
Tue, 7 Aug 2012 22:06:12 +0000 (16:06 -0600)
committerAntoine Musso <hashar@free.fr>
Mon, 28 Jan 2013 13:38:37 +0000 (14:38 +0100)
commit550b878e63cd03c225194370337ee2f876626894
treed880c9f3b0be1d9de619d7ba08d608c36f7b9641
parent401aa5c63f34fc626c2f5e3b7a0c70d621f9a89e
Whitelisting publicly readable title with regex

This patch make it possible to whitelist pages which anonymous users may
see. It is similar to $wgWhitelistRead expect it uses regular
expressions, the list of regex are to be added in the new global array
$wgWhitelistReadRegexp.

This would be useful in a semi-public team wiki situation where the
admin would want to hide an entire namespace from everyone except those
in a particular group due to sensitive team specific information.

Added new unit test testUserCan in includes/TitleTest.php to
test this new functionality.

* adds $wgWhitelistReadRegexp to DefaultSettings.php
* updates RELEASE-NOTES-1.21 new features
* updates CREDITS

Signed-off-by: Antoine Musso <hashar@free.fr>
Change-Id: I83f6a614874c3d289ff4bd8d015f1d9c92e500b6
CREDITS
RELEASE-NOTES-1.21
includes/DefaultSettings.php
includes/Title.php
tests/phpunit/includes/TitleTest.php