[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 22:23:29 UTC 2011
#16974: absint to return 0 for values with non-numeric characters
--------------------------+----------------------
Reporter: sc0ttkclark | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version: 3.1
Severity: minor | Resolution: wontfix
Keywords: has-patch |
--------------------------+----------------------
Comment (by nacin):
Strong +1 for the wontfix.
Imagine a ?p= URL that was made clickable, but the trailing whitespace was
lost. http://wordpress.org/news/?p=100and would work. So would
`http://wordpress.org/news/?p=100)`, in systems where the ) becomes
clickable.
That's just one specific instance. I am also for wontfix on the theory
basis. absint() doesn't perform validation, it performs sanitization.
We're using core PHP functions here, so this is expected behavior. I see
no reason to modify this.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16974#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list