Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2721
blockencode.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 21 2014, 9:11 PM
2014-11-21 21:11:14 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
blockencode.patch
View Options
Index: includes/LogPage.php
===================================================================
--- includes/LogPage.php (revision 13503)
+++ includes/LogPage.php (working copy)
@@ -191,7 +191,7 @@
$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: includes/SpecialContributions.php
===================================================================
--- includes/SpecialContributions.php (revision 13503)
+++ includes/SpecialContributions.php (working copy)
@@ -226,7 +226,7 @@
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() );
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2296
Default Alt Text
blockencode.patch (1 KB)
Attached To
Mode
T7458: Block log links with non-ASCII username are broken
Attached
Detach File
Event Timeline
Log In to Comment