URL-escape the main page link on the logo
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 6 Sep 2003 06:05:57 +0000 (06:05 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 6 Sep 2003 06:05:57 +0000 (06:05 +0000)
includes/Skin.php

index 1cbddf6..9576870 100644 (file)
@@ -601,7 +601,8 @@ if ( isset ( $wgUseApproval ) && $wgUseApproval )
                else { $a = ""; }
 
                $mp = wfMsg( "mainpage" );
-               $s = "<a href=\"" . wfLocalUrlE( $mp ) . "\"><img{$a} border=0 src=\""
+               $s = "<a href=\"" . wfLocalUrlE( urlencode( $mp ) )
+                 . "\"><img{$a} border=0 src=\""
                  . $this->getLogo() . "\" alt=\"" . "[{$mp}]\"></a>";
                return $s;
        }