Commit: 7e9044b6a251f40da1217c3265b83a9caae8bff8 Author: David Soria Parra <d...@php.net> Wed, 18 Sep 2013 14:26:10 +0200 Parents: 9bfd55cda3bd66b56af84a569fafd8a77cbb3726 Branches: PHP-5.4 PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7e9044b6a251f40da1217c3265b83a9caae8bff8 Log: RFC 6598 reserved ip range starts at 100.64.0.0 Changed paths: M ext/filter/logical_filters.c Diff: diff --git a/ext/filter/logical_filters.c b/ext/filter/logical_filters.c index 71c5aba..1496488 100644 --- a/ext/filter/logical_filters.c +++ b/ext/filter/logical_filters.c @@ -714,7 +714,7 @@ void php_filter_validate_ip(PHP_INPUT_FILTER_PARAM_DECL) /* {{{ */ if (flags & FILTER_FLAG_NO_RES_RANGE) { if ( (ip[0] == 0) || - (ip[0] == 100 && (ip[1] == 0 || ip[1] <= 127)) || + (ip[0] == 100 && (ip[1] >= 64 || ip[1] <= 127)) || (ip[0] == 128 && ip[1] == 0) || (ip[0] == 191 && ip[1] == 255) || (ip[0] == 169 && ip[1] == 254) || -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php