From 244e0280f9893192156046e8c1f09087173020c7 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Thu, 24 Jun 2004 16:20:49 +0000 Subject: [PATCH] fixed bug where section anchor was appended twice (once with illegal chars), whitelist function bug fix (use NS_MAIN instead of NS_ARTICLE) --- includes/Title.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index 66c52e436f..bdb837001e 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -375,9 +375,6 @@ class Title { $n = $wgLang->getNsText( $this->mNamespace ); if ( "" != $n ) { $n .= ":"; } $u = str_replace( "$1", $n . $this->mUrlform, $p ); - if ( "" != $this->mFragment ) { - $u .= "#" . wfUrlencode( $this->mFragment ); - } return $u; } @@ -531,7 +528,7 @@ class Title { if( in_array( $name, $wgWhitelistRead ) ) return true; # Compatibility with old settings - if( $this->getNamespace() == NS_ARTICLE ) { + if( $this->getNamespace() == NS_MAIN ) { if( in_array( ":" . $name, $wgWhitelistRead ) ) return true; } return false; -- 2.20.1