MantisBT: master 2b5d6621

Author Committer Branch Timestamp Parent
dregad dregad master 2012-09-26 05:20 master a93121b9
Affected Issues  0014744: Unicode characters in text field prevent bug display
Changeset

Remove invalid chars from displayed string per XML specification

Strict XHTML requires that data comply with XML 1.0 specification [1],
which only allows a subset of the UTF-8 charset.

Function string_html_specialchars() has been modified to remove from the
string to print, any character which is not in the defined range

Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] |
[#x10000-#x10FFFF]

Fixes 0014744

[1] http://www.w3.org/TR/xml/

mod - core/string_api.php Diff File