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:Mostlinked
{{Patch global $wgLang;
 * file = includes\SpecialMostlinked.php
 * function = formatResult
 * description = avoids entries of protected pages appearing in most linked pages
 * authors = WIKImaniac
 * source =
 * date = 2008-02-04
 * mediawiki_version = 1.10.0
 * language =
 * code =        function formatResult( $skin, $result ) {

+               if ( namespaceIsVisible( $result->namespace ) ) { $title = Title::makeTitleSafe( $result->namespace, $result->title ); $link = $skin->makeLinkObj( $title ); $wlh = $this->makeWlhLink( $title,                               wfMsgExt( 'nlinks', array( 'parsemag', 'escape'), $wgLang->formatNum( $result->value ) ), $skin ); return wfSpecialList( $link, $wlh ); +               }        } } }}