Last modified: 2010-12-27 03:22:30 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 T28437, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26437 - Sanitizer::decodeCharReferences converts invalid entity
Sanitizer::decodeCharReferences converts invalid entity
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.18.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Brion Vibber
: patch
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-12-26 14:40 UTC by Umherirrender
Modified: 2010-12-27 03:22 UTC (History)
2 users (show)

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


Attachments
change regex to ignore non-hexadecimal characters (1.04 KB, patch)
2010-12-26 14:40 UTC, Umherirrender
Details

Description Umherirrender 2010-12-26 14:40:55 UTC
Created attachment 7931 [details]
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.
Comment 1 Niklas Laxström 2010-12-26 14:50:51 UTC
Looks sane to me.
Comment 2 Brion Vibber 2010-12-27 03:08:17 UTC
Looks good; testing.
Comment 3 Brion Vibber 2010-12-27 03:22:30 UTC
Great! Committed along with a parser regression test case in r79045.

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


Navigation
Links