Last modified: 2013-06-06 13:57:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T51231, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49231 - Sanitizer::normalizeEntity handles htmlEntityAliases incorrectly.
Sanitizer::normalizeEntity handles htmlEntityAliases incorrectly.
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.22.0
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-06 05:57 UTC by Daniel Friesen
Modified: 2013-06-06 13:57 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Daniel Friesen 2013-06-06 05:57:42 UTC
Sanitizer::normalizeEntity starts with:

  static function normalizeEntity( $name ) {
  	if ( isset( self::$htmlEntityAliases[$name] ) ) {
  		return '&' . self::$htmlEntityAliases[$name] . ';';
  	} elseif ( in_array( $name, array( 'lt', 'gt', 'amp', 'quot' ) ) ) {


Which means &רלמ; will normalize to ‏ instead of to ‏ like ‏ does.

> echo Sanitizer::normalizeCharReferences( "&רלמ;" );
‏
> echo Sanitizer::normalizeCharReferences( "‏" );
‏

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links