[wp-trac] [WordPress Trac] #11623: review options list and update sanitize_option()

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 26 01:22:15 UTC 2009


#11623: review options list and update sanitize_option()
-------------------------+--------------------------------------------------
 Reporter:  dd32         |       Owner:  ryan     
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  3.0      
Component:  Security     |     Version:  2.9      
 Severity:  normal       |    Keywords:  has-patch
-------------------------+--------------------------------------------------
 A lot of options have been added since 2.0.5, and as a result, not all of
 them have been added to {{{sanitize_option()}}}

 Ideally, Options which are to be (int) or absint() should have a filter
 applied to them here.

 Attached patch is for the first option thats brought this up,
 'start_of_week' which is tested to be int in some function uses, ignored
 elsewhere.

 I've set this to security as its preventive security..

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


More information about the wp-trac mailing list