From: Niklas Laxström Date: Thu, 10 Jul 2008 19:51:25 +0000 (+0000) Subject: * Escaping, should also fix the weird double transform bug recently found X-Git-Tag: 1.31.0-rc.0~46562 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=bac724f95c4e9733df2ffbd77986c14b97039c86;p=lhc%2Fweb%2Fwiklou.git * Escaping, should also fix the weird double transform bug recently found --- 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"; }