[wp-trac] [WordPress Trac] #32165: wp-db.php destructs all the multibyte characters

WordPress Trac noreply at wordpress.org
Tue Apr 28 21:16:47 UTC 2015


#32165: wp-db.php destructs all the multibyte characters
--------------------------+--------------------
 Reporter:  kjmtsh        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:  4.2.2
Component:  Database      |     Version:  4.1.2
 Severity:  blocker       |  Resolution:
 Keywords:                |     Focuses:
--------------------------+--------------------

Comment (by azaozz):

 @kjmtsh thanks for the detailed bug report.

 If I understand it right, the problem is in `strip_invalid_text()` failing
 to consider that the database connection encoding is different than the
 table/column encoding. This results in wrong "from" and "to" args in
 `mb_convert_encoding()` as the string is currently encoded same as the
 database connection encoding rather than the table encoding.

 I'm not sure if the proposed patch is an acceptable fix. We need to detect
 these cases better, @pento would know more :)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32165#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list