From bac724f95c4e9733df2ffbd77986c14b97039c86 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Thu, 10 Jul 2008 19:51:25 +0000 Subject: [PATCH] * Escaping, should also fix the weird double transform bug recently found --- includes/Linker.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Linker.php b/includes/Linker.php index 5da07ba225..7af49ad381 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1295,7 +1295,7 @@ class Linker { $editurl = '§ion='.$section; $url = $this->makeKnownLinkObj( $nt, - wfMsg('editsection'), + htmlspecialchars(wfMsg('editsection')), 'action=edit'.$editurl, '', '', '', $hint ); @@ -1311,9 +1311,9 @@ class Linker { // For reverse compatibility, add the brackets *after* the hook is run, // and even add them to hook-provided text. if( is_null( $result ) ) { - $result = wfMsg( 'editsection-brackets', $url ); + $result = wfMsgHtml( 'editsection-brackets', $url ); } else { - $result = wfMsg( 'editsection-brackets', $result ); + $result = wfMsgHtml( 'editsection-brackets', $result ); } return "$result"; } -- 2.20.1