*
* @param $rc Mixed: change identifier or RecentChange object
* @param $auto Boolean: was this patrol event automatic?
+ *
+ * @return bool
*/
public static function record( $rc, $auto = false ) {
if( !( $rc instanceof RecentChange ) ) {
return wfMsgHtml( 'patrol-log-line', $diff, $link, $auto );
} else {
$text = $title->getPrefixedText();
- return wfMsgForContent( 'patrol-log-line', wfMsgHtml('patrol-log-diff',$cur), "[[$text]]", '' );
+ $diff = htmlspecialchars( wfMsgForContent( 'patrol-log-diff', $cur ) );
+ return wfMsgForContent( 'patrol-log-line', $diff, "[[$text]]", '' );
}
}