[wp-trac] [WordPress Trac] #11528: sanitize_text_field() issue with UTF-8 characters

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 23 08:39:12 UTC 2009


#11528: sanitize_text_field() issue with UTF-8 characters
----------------------------+-----------------------------------------------
 Reporter:  SergeyBiryukov  |       Owner:            
     Type:  defect (bug)    |      Status:  new       
 Priority:  normal          |   Milestone:  Unassigned
Component:  Formatting      |     Version:  2.9       
 Severity:  major           |    Keywords:            
----------------------------+-----------------------------------------------

Comment(by azaozz):

 Yes, `a0` or UTF-8 `00a0` is the ` ` character. Can you try replacing
 that line with:
 {{{
 $filtered = trim( preg_replace('/[\r\n\t ]+/', ' ', $filtered) );
 }}}
 to see if it fixes this.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11528#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list