diff options
author | Rasmus Lerdorf <rasmus@lerdorf.com> | 2013-10-19 00:01:13 -0700 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@lerdorf.com> | 2013-10-19 00:43:21 -0700 |
commit | 55b16f40a2db6de9f5de08d284b1c37149e25a49 (patch) | |
tree | 4435541fd057de9770654d9a0b023bf8fb709eb9 /ext/filter/logical_filters.c | |
parent | 30d64b0efbc0e49a058858fe8096dcb70455ddd4 (diff) | |
download | php-git-55b16f40a2db6de9f5de08d284b1c37149e25a49.tar.gz |
Merge branch 'pull-request/499'
Fix RFC 6598 IPv4 Reserved Range Checks
Diffstat (limited to 'ext/filter/logical_filters.c')
-rw-r--r-- | ext/filter/logical_filters.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/filter/logical_filters.c b/ext/filter/logical_filters.c index 653cce23e6..39433d6ece 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] >= 64 || 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) || |