r56355 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56354‎ | r56355 | r56356 >
Date:10:25, 15 September 2009
Author:werdna
Status:ok
Tags:
Comment:
Follow-up to r56296, replace htmlspecialchars_decode with html_entity_decode.
Modified paths:
  • /trunk/extensions/AbuseFilter/AbuseFilter.parser.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AbuseFilter/AbuseFilter.parser.php
@@ -1373,7 +1373,7 @@
13741374 array( 'ccnorm', 1, count($args) ) );
13751375 $s = $args[0]->toString();
13761376
1377 - $s = htmlspecialchars_decode($s);
 1377+ $s = html_entity_decode($s, ENT_QUOTES, 'UTF-8');
13781378 $s = $this->ccnorm( $s );
13791379
13801380 return new AFPData( AFPData::DString, $s );

Follow-up revisions

RevisionCommit summaryAuthorDate
r56377Merge AbuseFilter r56296 r56355brion18:02, 15 September 2009

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r56296Add HTML entity decoding to AbuseFilter ccnorm() functionwerdna11:33, 14 September 2009

Status & tagging log