[wp-trac] [WordPress Trac] #11620: Upload Handling. Use is_numeric instead of ctype_digit.

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 26 09:05:56 UTC 2009


#11620: Upload Handling. Use is_numeric instead of ctype_digit.
------------------------------+---------------------------------------------
 Reporter:  markup            |        Owner:        
     Type:  defect (bug)      |       Status:  closed
 Priority:  high              |    Milestone:  2.9.1 
Component:  Upload            |      Version:  2.9   
 Severity:  normal            |   Resolution:  fixed 
 Keywords:  has-patch commit  |  
------------------------------+---------------------------------------------

Comment(by hakre):

 keep in mind that ctype_digit() does something else than is_numeric().
 is_numeric is true for ''+0123.45e6'' or ''0xFF''.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11620#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list