[wp-trac] [WordPress Trac] #36393: Loss of multibyte comment author names
WordPress Trac
noreply at wordpress.org
Fri Apr 1 07:23:41 UTC 2016
#36393: Loss of multibyte comment author names
--------------------------+------------------------------
Reporter: cfinke | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by cfinke):
There might be a solution lurking in `mb_strlen()`. If
`wp_check_invalid_utf8()` returns an empty string, take bytes off of the
original string (up to 5 bytes) until `mb_strlen()` returns a smaller
number and then try `wp_check_invalid_utf8()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36393#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list