Skip to content

Commit 7e9044b

Browse files
committed
RFC 6598 reserved ip range starts at 100.64.0.0
1 parent 9bfd55c commit 7e9044b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/filter/logical_filters.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ void php_filter_validate_ip(PHP_INPUT_FILTER_PARAM_DECL) /* {{{ */
714714
if (flags & FILTER_FLAG_NO_RES_RANGE) {
715715
if (
716716
(ip[0] == 0) ||
717-
(ip[0] == 100 && (ip[1] == 0 || ip[1] <= 127)) ||
717+
(ip[0] == 100 && (ip[1] >= 64 || ip[1] <= 127)) ||
718718
(ip[0] == 128 && ip[1] == 0) ||
719719
(ip[0] == 191 && ip[1] == 255) ||
720720
(ip[0] == 169 && ip[1] == 254) ||

0 commit comments

Comments
 (0)