[wp-trac] [WordPress Trac] #11327: Widgets might get null bytes in their CSS class

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 4 20:11:33 UTC 2009


#11327: Widgets might get null bytes in their CSS class
--------------------------+-------------------------------------------------
 Reporter:  qualipsoft    |       Owner:                             
     Type:  defect (bug)  |      Status:  new                        
 Priority:  normal        |   Milestone:  2.9                        
Component:  General       |     Version:  2.3                        
 Severity:  normal        |    Keywords:  widgets css class has-patch
--------------------------+-------------------------------------------------
 When register_sidebar_widget is called with a lambda/create_function as
 output_callback and no/empty classname, the widget's CSS class will
 contain "\0lamba_123" (\0 being the null character and 123 being the
 actual assigned lamba id).

 This bug was introduced in 2.3 by #4910 (In [6098]).

 The simple fix might be to left-trim null bytes from the classname (this
 would fix the case for lambda's, and maybe other cases I'm not aware of)

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


More information about the wp-trac mailing list