[wp-trac] [WordPress Trac] #16974: absint to return 0 for values with non-numeric characters
WordPress Trac
wp-trac at lists.automattic.com
Sat Mar 26 18:25:57 UTC 2011
#16974: absint to return 0 for values with non-numeric characters
--------------------------+------------------------------
Reporter: sc0ttkclark | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.1
Severity: minor | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Comment (by sc0ttkclark):
@scribu - It is, I just believe that if $maybeint contains non-numeric
characters it should return zero to avoid canonical issues with the values
it deals with. Otherwise, a significant number of absint usages in WP Core
would need additional checks to prevent the usage of non-numeric
characters in their values.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16974#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list