[wp-trac] [WordPress Trac] #32136: strip_invalid_text removes all russian utf8 chars

WordPress Trac noreply at wordpress.org
Sun Apr 26 23:48:23 UTC 2015


#32136: strip_invalid_text removes all russian utf8 chars
--------------------------+--------------------
 Reporter:  Fahrain       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.2.1
Component:  Database      |     Version:  4.2
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+--------------------

Comment (by Fahrain):

 tested it with 4.1.2 and 4.1.3. As i can see - 4.2 uses the same code in
 this function.
 I'm planning to upgrade to 4.2 at the next few days, need to do some
 tests.

 I think the problem is in incorrect encoding detection so when i disable
 'utf8' in this 'if' all input data will be send to database to test it:

 {{{
 ...
 // We couldn't use any local conversions, send it to the DB.
 $value['db'] = $db_check_string = true;
 ...
 }}}

 where this encoding detection works right or just didn't changes input
 data

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


More information about the wp-trac mailing list