r25832 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25831‎ | r25832 | r25833 >
Date:19:06, 13 September 2007
Author:brion
Status:old (Comments)
Tags:
Comment:
Reverting r25082:
Do not restore security vulnerabilities to the codebase after a security release.
Especially don't MAKE THEM WORSE IN THE PROCESS.
Modified paths:
  • /trunk/phase3/includes/api/ApiFormatBase.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiFormatBase.php
@@ -158,6 +158,8 @@
159159 * This method also replaces any '<' with &lt;
160160 */
161161 protected function formatHTML($text) {
 162+ // Escape everything first for full coverage
 163+ $text = htmlspecialchars($text);
162164
163165 // encode all comments or tags as safe blue strings
164166 $text = preg_replace('/\&lt;(!--.*?--|.*?)\&gt;/', '<span style="color:blue;">&lt;\1&gt;</span>', $text);

Follow-up revisions

RevisionCommit summaryAuthorDate
r25849Merged revisions 25804-25848 via svnmerge from...david06:54, 14 September 2007

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r25082* (bug 5206) Add accesskey ',' to 'preferences' navigationlink...raymond09:34, 23 August 2007

Comments

#Comment by MZMcBride (talk | contribs)   18:51, 17 February 2010

The code comment should read "Reverting r25802."

Status & tagging log