Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix regex to remove UTF-8 chars invalid in XML 1.0
The regex introduced in string_html_specialchars() function with commit 2b5d662 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 #14744 [1] http://php.net/regexp.reference.escape
- Loading branch information