r95599 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95598‎ | r95599 | r95600 >
Date:14:59, 27 August 2011
Author:johnduhart
Status:ok
Tags:
Comment:
Follow-up r95043, htmlspecialchars() the content
Modified paths:
  • /trunk/extensions/CodeReview/backend/DiffHighlighter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/backend/DiffHighlighter.php
@@ -188,6 +188,7 @@
189189 # Rely on $left, $right initialization above
190190 }
191191
 192+ $content = htmlspecialchars( $content );
192193 $classAttr = is_null($class) ? '' : " class=\"$class\"";
193194 return sprintf( "<tr class=\"commentable\" {$idAttr}>{$formatLN}<td%s>%s</td></tr>\n",
194195 $left, $right,

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r95043line numbers and better style...hashar21:00, 19 August 2011

Status & tagging log