[wp-trac] [WordPress Trac] #6233: kses can cut unicode text from tags attributes

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 15 16:08:58 GMT 2008


#6233: kses can cut unicode text from tags attributes
---------------------+------------------------------------------------------
 Reporter:  humator  |       Owner:  anonymous   
     Type:  defect   |      Status:  new         
 Priority:  normal   |   Milestone:  2.6         
Component:  General  |     Version:  2.3.3       
 Severity:  normal   |    Keywords:  kses unicode
---------------------+------------------------------------------------------
 The following code
 {{{
 $string = preg_replace('/\xad+/', '', $string); # deals with Opera
 "feature"
 }}}
 in function wp_kses_bad_protocol can also break unicode letters. E.g.
 Russian word Экран was cut by this function by error (this word was in
 "alt" attribute). As a result the whole post was cut after that place.

 The problem is that 0xAD symbol can appear in unicode text.

 I would fix this bug, but unfortunately I don't know what Opera "feature"
 is mentioned here.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6233>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list