From 8d3f8e8275332e69ba9855f53fb610e36e4bb3ab Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 29 Jan 2005 05:16:42 +0000 Subject: [PATCH] * (bug 1429) Stop double-escaping of block comments; fix formatting --- includes/SpecialBlockip.php | 2 +- includes/SpecialIpblocklist.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/SpecialBlockip.php b/includes/SpecialBlockip.php index e95f8aa937..e83e99095f 100644 --- a/includes/SpecialBlockip.php +++ b/includes/SpecialBlockip.php @@ -160,7 +160,7 @@ class IPBlockForm { # Note: for a user block, ipb_address is only for display purposes $ban = new Block( $this->BlockAddress, $userId, $wgUser->getID(), - wfStrencode( $this->BlockReason ), wfTimestampNow(), 0, $expiry ); + $this->BlockReason, wfTimestampNow(), 0, $expiry ); if (wfRunHooks('BlockIp', $ban, $wgUser)) { diff --git a/includes/SpecialIpblocklist.php b/includes/SpecialIpblocklist.php index 71f8ec14f5..8f1129bbd2 100644 --- a/includes/SpecialIpblocklist.php +++ b/includes/SpecialIpblocklist.php @@ -169,7 +169,7 @@ function wfAddRow( $block, $tag ) { $wgOut->addHTML( " ({$ublink})" ); } if ( "" != $block->mReason ) { - $wgOut->addHTML( " (" . htmlspecialchars( $block->mReason ) . + $wgOut->addHTML( " (" . $sk->formatComment( $block->mReason ) . ")" ); } $wgOut->addHTML( "\n" ); -- 2.20.1