[wp-trac] [WordPress Trac] #11393: class-ftp.php doesn't check correctly for IP validity under PHP5
WordPress Trac
wp-trac at lists.automattic.com
Sat Dec 12 23:53:07 UTC 2009
#11393: class-ftp.php doesn't check correctly for IP validity under PHP5
--------------------------+-------------------------------------------------
Reporter: miqrogroove | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9
Component: General | Version:
Severity: minor | Keywords: has-patch
--------------------------+-------------------------------------------------
Comment(by westi):
The check in akismet won't actually work anyway.
For Example {{{"Howdy" && long2ip(ip2long("Howdy"))}}} will evaluate to
true as the string evaluates to true and the false returned by ip2long
will cast to an int(0) fine which becomes an ip address of "0.0.0.0" which
as a string with evaluate to true.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11393#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list