]> granicus.if.org Git - php/commitdiff
RFC 6598 reserved ip range starts at 100.64.0.0
authorDavid Soria Parra <dsp@php.net>
Wed, 18 Sep 2013 12:26:10 +0000 (14:26 +0200)
committerDavid Soria Parra <dsp@php.net>
Wed, 18 Sep 2013 12:27:58 +0000 (14:27 +0200)
ext/filter/logical_filters.c

index 71c5aba1e932336d1e2b9dd3390a2145d90b46ce..14964883c1b26cdcd726680701787b729d090669 100644 (file)
@@ -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) ||