[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 17:59:20 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 aaroncampbell):
We talked a little on IRC. What he's trying to fix is that `absint(
'123abc' )` returns 123 but `absint( 'abc123' )` returns 0.
His original issue came from the fact that
http://wordpress.org/news/?p=100 is the same as
http://wordpress.org/news/?p=100test but not the same as
http://wordpress.org/news/?p=test100
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16974#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list