Extension:Lockdown/hiding pages

This page contains patches to mediawiki that will hide pages that are not readable from several listings. These patches have been provided by User:WIKImaniac.

security flaws & bugfixes
Following instructions have to be read like this:

Special:Search
To avoid content of protected pages appearing in search results, change follwowing lines of the function showMatches in SpecialSearch.php:

Special:Allpages, …
To avoid names of protected namespaces appearing in combo boxes, add follwowing functions to your Lockdown.php:

You also have to change follwowing lines of the function getNamespaces in Language\Language.php:

Special:Recentchanges
To avoid changes and edit summary of protected pages appearing in recent changes, change follwowing lines of the function wfSpecialRecentchanges in includes\SpecialRecentchanges.php:

Special:Wantedpages
To avoid entries of protected pages appearing in wanted changes, change follwowing lines of the function formatResult in includes\SpecialWantedpages.php:

Special:Logs
To avoid entries of protected pages appearing in the logs, change follwowing lines of the function logLine in includes\SpecialLog.php:

Categories
To avoid entries of protected pages appearing in categories, change follwowing lines of the function addPage in includes\CategoryPage.php:

Special:Prefixindex
To avoid entries of protected pages appearing in prefixindex, change follwowing lines of the function showChunk in includes\SpecialPrefixindex.php:

Special:Mostlinked
To avoid entries of protected pages appearing in most linked pages, change follwowing lines of the function formatResult in includes\SpecialMostlinked.php:

Special:Listredirects
To avoid entries of protected pages appearing in list of redirects, change follwowing lines of the function formatResult in includes\SpecialListredirects.php:

Special:Linksearch
To avoid entries of protected pages appearing in Special:Linksearch – if you are using Extension:LinkSearch, change follwowing lines of the function formatResult in extensions\LinkSearch\LinkSearch_body.php: