* Fixed a bug where Special:Contributions wouldn't remember the 'invert'
status between next/previous buttons.
* Move MonoBook printable link from tab to sidebar
+* (bug 2567) Fix HTML escaping on category titles in list
=== Caveats ===
if ( $ns == NS_CATEGORY ) {
wfProfileIn( "$fname-category" );
- $t = $wgContLang->convert($nt->getText());
+ $t = $wgContLang->convertHtml( $nt->getText() );
$s = rtrim($s . "\n"); # bug 87
$wgLinkCache->suspend(); # Don't save in links/brokenlinks
function convert( $text, $isTitle = false) {
return $this->mConverter->convert($text, $isTitle);
}
+
+ /**
+ * Perform output conversion on a string, and encode for safe HTML output.
+ * @param string $text
+ * @param bool $isTitle -- wtf?
+ * @return string
+ * @todo this should get integrated somewhere sane
+ */
+ function convertHtml( $text, $isTitle = false ) {
+ return htmlspecialchars( $this->convert( $text, $isTitle ) );
+ }
function convertCategoryKey( $key ) {
return $this->mConverter->convertCategoryKey( $key );