summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Soria Parra <dsp@php.net>2013-09-18 14:26:10 +0200
committerDavid Soria Parra <dsp@php.net>2013-09-18 14:27:58 +0200
commit7e9044b6a251f40da1217c3265b83a9caae8bff8 (patch)
tree013a914495ce5c7bfd76218184380f4de85a81c9
parent9bfd55cda3bd66b56af84a569fafd8a77cbb3726 (diff)
downloadphp-git-7e9044b6a251f40da1217c3265b83a9caae8bff8.tar.gz
RFC 6598 reserved ip range starts at 100.64.0.0
-rw-r--r--ext/filter/logical_filters.c2
1 files changed, 1 insertions, 1 deletions
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) ||