php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #66229
Patch dont-reserve-128-0-x-x revision 2013-12-03 22:20 UTC by georgestephanis at automattic dot com

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) ||
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 16:01:29 2024 UTC