Patch dont-reserve-128-0-x-x for Filter related Bug #66229
Patch version 2013-12-03 22:20 UTC
Return to Bug #66229 |
Download this patch
Patch Revisions:
Developer: georgestephanis@automattic.com
diff --git a/ext/filter/logical_filters.c b/ext/filter/logical_filters.c
index 39433d6..7c8d9ab 100644
--- a/ext/filter/logical_filters.c
+++ b/ext/filter/logical_filters.c
@@ -715,7 +715,6 @@ void php_filter_validate_ip(PHP_INPUT_FILTER_PARAM_DECL) /* {{{ */
if (
(ip[0] == 0) ||
(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) ||
(ip[0] == 192 && ip[1] == 0 && ip[2] == 2) ||
|