* (bug 5511) Fix URL-encoding of usernames in links on Special:Ipblocklist
authorRob Church <robchurch@users.mediawiki.org>
Mon, 22 May 2006 09:42:37 +0000 (09:42 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Mon, 22 May 2006 09:42:37 +0000 (09:42 +0000)
RELEASE-NOTES
includes/SpecialIpblocklist.php

index f320c38..862b450 100644 (file)
@@ -311,6 +311,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Big update to Swedish localisation (sv)
 * Use appropriate HTML functions to create the tool links on image pages, so they don't
   look garbled when tidy isn't on
+* (bug 5511) Fix URL-encoding of usernames in links on Special:Ipblocklist
 
 == Compatibility ==
 
index f533192..8c43aeb 100644 (file)
@@ -224,7 +224,7 @@ class IPUnblockForm {
                        $target = '#' . $block->mId; # Hide the IP addresses of auto-blocks; privacy
                } else {
                        $target = $sk->makeLinkObj( Title::makeTitle( NS_USER, $block->mAddress ), $block->mAddress );
-                       $target .= ' (' . $sk->makeKnownLinkObj( Title::makeTitle( NS_SPECIAL, 'Contributions' ), $msg['contribslink'], 'target=' . $block->mAddress ) . ')';
+                       $target .= ' (' . $sk->makeKnownLinkObj( Title::makeTitle( NS_SPECIAL, 'Contributions' ), $msg['contribslink'], 'target=' . urlencode( $block->mAddress ) ) . ')';
                }
                
                # Prep the address for the unblock link, masking autoblocks as before