[wp-trac] [WordPress Trac] #5188: Additional DB sanitization functions

WordPress Trac wp-trac at lists.automattic.com
Sat Oct 13 03:17:29 GMT 2007


#5188: Additional DB sanitization functions
-------------------------+--------------------------------------------------
 Reporter:  markjaquith  |       Owner:  anonymous
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  2.4      
Component:  General      |     Version:           
 Severity:  normal       |    Keywords:           
-------------------------+--------------------------------------------------
 For places where we build complex SQL queries by hand or where we let PHP
 control things like column names, limits, and ORDER BY order, we need some
 functions to consistently sanitize this data.

 Proposed:

 {{{
 sanitize_column($column name);
 sanitize_limit($limit_string);
 sanitize_orderby_direction($desc_or_asc);
 }}}

 Any others?

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


More information about the wp-trac mailing list