r23932 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r23931
|
r23932
|
r23933
>
Date:
01:32, 10 July 2007
Author:
simetrical
Status:
old
Tags:
Comment:
(
bug 10413
) DISPLAYTITLE doesn't escape HTML entities, causing the displayed title to a) be wrong and b) not normalize to the actual title. No RELEASE-NOTES because this feature was only added this release anyway. Patch based on one by WebBoy.
Modified paths:
/trunk/phase3/includes/CoreParserFunctions.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/CoreParserFunctions.php
—
—
@@ -107,7 +107,7 @@
108
108
* @return string
109
109
*/
110
110
static function displaytitle( $parser, $text = '' ) {
111
- $text = trim( $text );
111
+ $text = trim( Sanitizer::decodeCharReferences( $text ) );
112
112
$title = Title::newFromText( $text );
113
113
if( $title instanceof Title && $title->getFragment() == '' && $title->equals( $parser->mTitle ) )
114
114
$parser->mOutput->setDisplayTitle( $text );
Follow-up revisions
Revision
Commit summary
Author
Date
r24096
Merged revisions 23910-24094 via svnmerge from...
david
22:38, 14 July 2007
Status & tagging log
15:19, 12 September 2011
Meno25
(
talk
|
contribs
)
changed the
status
of r23932
[
removed:
ok
added:
old]