MantisBT: master ff2e6506

Author Committer Branch Timestamp Parent
dregad dregad master 2012-11-15 17:32 master 7ae2d9ae
Affected Issues  0014744: Unicode characters in text field prevent bug display
Changeset

Fix regex to remove UTF-8 chars invalid in XML 1.0

The regex introduced in string_html_specialchars() function with commit
2b5d66217bd4ecf5e7271f1a4b2b339d7681e91c caused problems with multibyte
UTF-8 chars, as PCRE require that they are specified like '\x{NNNN}';
the syntax without braces '\xNN' only supports up to 2 hex digits [1].

Fixes 0014744

[1] http://php.net/regexp.reference.escape

mod - core/string_api.php Diff File