[wp-trac] [WordPress Trac] #16867: Where is it appropriate to use filter_var

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 16 16:47:13 UTC 2011


#16867: Where is it appropriate to use filter_var
---------------------------+-----------------------------
 Reporter:  aaroncampbell  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  General        |    Version:
 Severity:  normal         |   Keywords:  2nd-opinion
---------------------------+-----------------------------
 Now that we require PHP 5.2 we have access to a whole plethora of new
 functions.  One of those is [http://php.net/filter_var/ filter_var].  It
 seems like this could be useful for things like validating and filtering
 E-Mail addresses, URLs, IPs, etc. (there are plenty of
 [php.net/manual/en/filter.filters.php filters]).

 This was brought up in #15379 where nacin said:
   Those can be buggy. We could potentially leverage it internally but we
 need to watch out for vulnerabilities and what not across PHP versions.

 I mostly wanted this to be the place where we decide what could benefit
 from it and what shouldn't.

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


More information about the wp-trac mailing list