From: David Soria Parra Date: Wed, 18 Sep 2013 12:26:10 +0000 (+0200) Subject: RFC 6598 reserved ip range starts at 100.64.0.0 X-Git-Tag: php-5.5.4~2^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e9044b6a251f40da1217c3265b83a9caae8bff8;p=php RFC 6598 reserved ip range starts at 100.64.0.0 --- diff --git a/ext/filter/logical_filters.c b/ext/filter/logical_filters.c index 71c5aba1e9..14964883c1 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) ||