[wp-trac] Re: [WordPress Trac] #6534: Use of ctype_digit in link_template.php can break uploader.

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 2 01:21:07 GMT 2008


#6534: Use of ctype_digit in link_template.php can break uploader.
-----------------------+----------------------------------------------------
 Reporter:  Otto42     |        Owner:  anonymous
     Type:  defect     |       Status:  new      
 Priority:  high       |    Milestone:  2.5.1    
Component:  General    |      Version:  2.5      
 Severity:  major      |   Resolution:           
 Keywords:  has-patch  |  
-----------------------+----------------------------------------------------
Changes (by mtekk):

  * keywords:  => has-patch

Comment:

 I get the same problem in my testbed running php 5.2.6. I don't know why
 Gentoo doesn't include the ctype functions by default. Ctype is preferred
 to str_* and is_* functions in most cases according to the php
 documentation (http://docs.php.net/manual/en/intro.ctype.php).

 I changed it to is_numeric(), it works for me, and I hope the patch I've
 attached is the correct type.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6534#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list