Page MenuHomePhabricator

Sanitizer::decodeCharReferences converts invalid entity
Closed, ResolvedPublic

Description

change regex to ignore non-hexadecimal characters

The entity &#xsee; is converted to î, because the php function hexdec() ignore non-hexadecimal characters and so &#xsee; is interpreted as î.

In my opinion it is better, to leave this invalid entity unchanged.

Thanks.


Version: 1.18.x
Severity: enhancement

Attached:

Details

Reference
bz26437

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:16 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz26437.

Great! Committed along with a parser regression test case in r79045.