(bug 5458) Fix double-URL encoding in block log link in contribs and contribs link...
authorRob Church <robchurch@users.mediawiki.org>
Wed, 5 Apr 2006 16:14:08 +0000 (16:14 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Wed, 5 Apr 2006 16:14:08 +0000 (16:14 +0000)
includes/LogPage.php
includes/SpecialContributions.php

index 2e72ba0..432f719 100644 (file)
@@ -191,7 +191,7 @@ class LogPage {
                                                                $titleLink = $title->getText();
                                                        } else {
                                                                $titleLink = $skin->makeLinkObj( $title, $title->getText() );
-                                                               $titleLink .= ' (' . $skin->makeKnownLinkObj( Title::makeTitle( NS_SPECIAL, 'Contributions/' . urlencode( $title->getDBkey() ) ), wfMsg( 'contribslink' ) ) . ')';
+                                                               $titleLink .= ' (' . $skin->makeKnownLinkObj( Title::makeTitle( NS_SPECIAL, 'Contributions/' . $title->getDBkey() ), wfMsg( 'contribslink' ) ) . ')';
                                                        }
                                                        break;
                                                default:
index a676959..d13b30d 100644 (file)
@@ -226,7 +226,7 @@ function wfSpecialContributions( $par = null ) {
                if( ( $id != 0 && $wgSysopUserBans ) || ( $id == 0 && User::isIP( $nt->getText() ) ) ) {
                        # Block link
                        if( $wgUser->isAllowed( 'block' ) )
-                               $tools[] = $sk->makeKnownLinkObj( Title::makeTitle( NS_SPECIAL, 'Blockip/' . $nt->getPartialUrl() ), wfMsgHtml( 'blocklink' ) );
+                               $tools[] = $sk->makeKnownLinkObj( Title::makeTitle( NS_SPECIAL, 'Blockip/' . $nt->getDBkey() ), wfMsgHtml( 'blocklink' ) );
                        # Block log link
                        $tools[] = $sk->makeKnownLinkObj( Title::makeTitle( NS_SPECIAL, 'Log' ), htmlspecialchars( LogPage::logName( 'block' ) ), 'type=block&page=' . $nt->getPrefixedUrl() );
                }