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 ); +               }        } } }}

Namespace-Prefix in Login Page
{{Patch --- includes/Title.php	2011-02-04 17:27:11.000000000 +0100 return MWNamespace::getCanonicalName( $this->mNamespace ); } 		} ! 		return $wgContLang->getNsText( $this->mNamespace ); } 	/**  	 * Get the DB key with the initial letter case as specified by the user --- 551,562  				return MWNamespace::getCanonicalName( $this->mNamespace ); } 		} ! 		$nsText = $wgContLang->getNsText( $this->mNamespace ); ! 		if (!$nsText && isset( $this->mNamespaceText)) { ! 			return $this->mNamespaceText; ! 		} else { ! 			return $nsText; ! 		} 	}  	/**  	 * Get the DB key with the initial letter case as specified by the user --- 2320,2326  					# Ordinary namespace $dbkey = $m[2]; $this->mNamespace = $ns; + 					$this->mNamespaceText = $p; # For Talk:X pages, check if X has a "namespace" prefix if( $ns == NS_TALK && preg_match( $prefixRegexp, $dbkey, $x ) ) { if( $wgContLang->getNsIndex( $x[1] ) ) }}
 * file = includes\Title.php
 * function = getNsText
 * description = allows namespace to appear in you-need-to-login-page
 * authors = mbr
 * source =
 * date = 2011-02-03
 * mediawiki_version = 1.16.1
 * language =
 * code =
 * includes/Title.php.old	2011-02-04 17:27:22.000000000 +0100
 * class Title {
 * 551,557 ****
 * class Title {
 * 2315,2320 ****